:root {
  --ink: #0E1420;
  --ink-80: #1F2937;
  --ink-60: #4A5568;
  --ink-40: #8894A6;
  --ink-20: #C9D0DB;
  --rule: #E8E2D6;
  --rule-soft: #F2EDE2;
  --paper: #FAF8F3;
  --paper-2: #F5F1E6;
  --white: #FFFFFF;

  /* MD brand blues */
  --primary: #1E3F9E;           /* main navy, matches MD header */
  --primary-deep: #14307A;      /* darker navy for depth */
  --primary-800: #19378A;
  --primary-50: #E8EEFB;

  /* accent = MD sky-blue (the "APP" pill on MD) */
  --accent: #3B7FE8;
  --accent-deep: #2766D1;
  --accent-ink: #0E2E6E;
  --accent-soft: #DCE8FB;

  --success: #2E9E5F;
  --success-soft: #E4F4EB;
  --warn: #E0853C;
  --warn-soft: #FCEFDE;
  --danger: #D64545;
  --danger-soft: #FBE5E5;

  --shadow-sm: 0 1px 2px rgba(14,20,32,0.04), 0 1px 1px rgba(14,20,32,0.02);
  --shadow: 0 2px 4px rgba(14,20,32,0.04), 0 4px 12px rgba(14,20,32,0.06);
  --shadow-lg: 0 8px 24px rgba(14,20,32,0.08), 0 2px 6px rgba(14,20,32,0.04);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --font-ui: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- layout ---------- */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

/* ---------- header ---------- */
.topbar {
  background: var(--primary);
  color: #E8EEFB;
  border-bottom: 1px solid #0F2566;
}
.topbar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
/* Logo da Comunidade (arquivos em app/assets/images, 3x a altura exibida):
   horizontal no desktop, vertical no celular (troca no <picture> do layout). */
.brand picture { display: block; flex-shrink: 0; }
/* Voltar: em todo celular (mesmo corte do header compacto), em qualquer
   navegador, app instalado ou WebView. No desktop o breadcrumb basta. */
.topbar-back { display: none; }
@media (max-width: 720px) {
  .topbar-back:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 44px;
    margin: 0 -6px 0 -8px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
  }
}
.brand-logo { display: block; width: auto; height: 64px; }

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  margin-left: 8px;
}
.topnav a {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C9D7E8;
  border-radius: 8px;
  transition: all 0.15s;
  cursor: pointer;
}
.topnav a:hover { background: rgba(255,255,255,0.06); color: white; }
.topnav a.active { color: var(--accent); }

.top-actions { display: flex; align-items: center; gap: 10px; flex: 1; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #C9D7E8;
  transition: background 0.15s;
}
.icon-btn:hover { background: rgba(255,255,255,0.08); color: white; }

/* ── user badge nameplate + tooltip ────────────────────────────────── */
.ub-nameplate {
  position: relative; display: inline-flex; align-items: center;
  gap: 5px; vertical-align: middle; cursor: default;
}
.ub-sm.ub-nameplate { gap: 4px; }
.ub-nameplate-name { font-weight: 700; }
.ub-sm .ub-nameplate-name { font-size: 0.82rem; }

.ub-pill {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.12s;
}
.ub-nameplate:hover .ub-pill { transform: scale(1.15); }
.ub-icon { font-size: 1.05rem; line-height: 1; }
.ub-sm .ub-icon { font-size: 0.92rem; }

.ub-tooltip {
  visibility: hidden; opacity: 0;
  position: absolute; bottom: calc(100% + 8px); left: 0;
  background: #1e293b; color: white; border-radius: 10px;
  padding: 10px 14px; min-width: 190px; max-width: 264px; z-index: 9999;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  pointer-events: none;
  transition: opacity 0.15s, visibility 0.15s;
}
.ub-tooltip::after {
  content: ""; position: absolute; top: 100%; left: 18px;
  border: 5px solid transparent; border-top-color: #1e293b;
}
.ub-tooltip-user {
  display: block; font-size: 0.8rem; font-weight: 700;
  margin-bottom: 7px; padding-bottom: 7px;
  border-bottom: 1px solid #334155; white-space: nowrap;
}
.ub-tooltip-row {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.78rem; padding: 4px 0;
}
.ub-tooltip-icon { font-size: 0.9rem; line-height: 1.3; flex-shrink: 0; }
.ub-tooltip-text { display: flex; flex-direction: column; gap: 1px; }
.ub-tooltip-name { font-weight: 700; }
.ub-tooltip-desc { font-size: 0.72rem; color: #cbd5e1; line-height: 1.35; }
.ub-tooltip-more {
  display: block; font-size: 0.7rem; color: #94a3b8;
  margin-top: 5px; padding-top: 5px; border-top: 1px solid #334155;
}
.ub-nameplate:hover .ub-tooltip { visibility: visible; opacity: 1; }

/* ── autor na página do tópico (shared/_author_plate) ─────────────────
   Selos com o nome escrito (no celular não existe hover para descobrir o
   que o ícone significa) e a linha de participação embaixo. */
.author-plate { position: relative; display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
/* Avatar na altura das duas linhas (nome + participação), como no Discourse;
   no celular um pouco menor para sobrar largura ao texto. */
.author-plate .author-plate-avatar {
  width: 44px; height: 44px; font-size: 17px; flex-shrink: 0; overflow: hidden;
}
@media (max-width: 640px) {
  .author-plate .author-plate-avatar { width: 40px; height: 40px; font-size: 16px; }
}
a.author-plate-avatar { text-decoration: none; }
.author-plate-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.author-plate-info { min-width: 0; }
.author-plate-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.author-plate-name { font-weight: 700; font-size: 15px; color: var(--ink, #0f172a); text-decoration: none; }
a.author-plate-name:hover { color: var(--accent); text-decoration: underline; }
/* Selo só com o ícone (20px, um pouco maior que o nome — padrão de selo ao
   lado do nome); nome e descrição na dica. Dois seletores de classe para
   vencer o reset ".mdf-page button" (forum_pages.css). */
.author-plate-line .author-plate-pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; margin: 0; border: 0; background: none; cursor: default;
  font-size: 20px; line-height: 1; transition: transform 0.12s;
}
.author-plate-line .author-plate-pill:hover,
.author-plate-line .author-plate-pill:focus-visible { transform: scale(1.12); outline: none; }
.author-plate-tip {
  visibility: hidden; opacity: 0; pointer-events: none;
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 2px;
  width: max-content; max-width: 240px; padding: 8px 12px; z-index: 50;
  background: #1e293b; color: #fff; border-radius: 8px; text-align: left;
  font-size: 13px; font-weight: 400; line-height: 1.4; white-space: normal;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22); transition: opacity 0.15s, visibility 0.15s;
}
.author-plate-tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px;
  border: 5px solid transparent; border-top-color: #1e293b;
}
.author-plate-tip strong { font-weight: 700; }
.author-plate-tip span { color: #cbd5e1; font-size: 12px; }
.author-plate-pill:hover .author-plate-tip,
.author-plate-pill:focus .author-plate-tip { visibility: visible; opacity: 1; }
/* Cartão do autor (shared/_author_card): abre sobre o avatar/nome/selos no
   hover ou com foco (toque num selo). Fica preso ao .author-plate (não ao
   nome) para cobrir também o avatar; o padding de baixo é uma "ponte"
   transparente, para o mouse chegar ao link sem o cartão fechar. Ao sair,
   ele demora um pouco para fechar (visibility com atraso): o avatar é
   redondo, e sair pelo canto dele perdia o hover antes de chegar ao cartão.
   O author_card_controller abre para baixo (.is-below) quando não cabe em
   cima e puxa para a esquerda quando passaria da borda da tela. */
.author-card-trigger { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.author-card {
  visibility: hidden; opacity: 0;
  position: absolute; bottom: 100%; left: 0; z-index: 60;
  width: 290px; padding-bottom: 10px; box-sizing: content-box;
  transition: opacity 0.15s ease 0.25s, visibility 0s linear 0.4s;
}
.author-card.is-below { bottom: auto; top: 100%; padding-bottom: 0; padding-top: 10px; }
.author-card-trigger:hover .author-card,
.author-card-trigger:focus-within .author-card,
.author-plate:has(.author-plate-avatar:hover) .author-card { visibility: visible; opacity: 1; transition: opacity 0.15s, visibility 0s; }
.author-card > * { background: #1e293b; color: #fff; display: flex; padding-left: 14px; padding-right: 14px; }
.author-card-head {
  flex-direction: column; gap: 1px; padding-top: 12px; padding-bottom: 8px;
  border-radius: 10px 10px 0 0; border-bottom: 1px solid #334155;
}
.author-card-head strong { font-size: 14px; font-weight: 700; }
.author-card-head span { font-size: 12px; color: #94a3b8; }
.author-card-row { align-items: flex-start; gap: 10px; padding-top: 6px; padding-bottom: 6px; }
.author-card-level { border-bottom: 1px solid #334155; padding-top: 8px; padding-bottom: 8px; }
.author-card-icon { font-size: 18px; line-height: 1.2; flex-shrink: 0; width: 22px; text-align: center; }
.author-card-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.author-card-text strong { font-size: 13px; font-weight: 700; }
.author-card-text strong em {
  font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fbbf24; margin-left: 4px;
}
.author-card-text span { font-size: 12px; color: #cbd5e1; line-height: 1.35; }
.author-card-more { font-size: 12px; color: #94a3b8; padding-top: 2px; padding-bottom: 6px; }
.author-card-foot {
  justify-content: space-between; align-items: center; gap: 8px;
  padding-top: 8px; padding-bottom: 10px; border-top: 1px solid #334155;
  border-radius: 0 0 10px 10px; font-size: 12px; color: #94a3b8;
}
.author-card-foot a { color: #93c5fd; font-weight: 700; text-decoration: none; white-space: nowrap; }
.author-card-foot a:hover { text-decoration: underline; }
/* Atalho da equipe no cartão (data-auth="staff"): o display:flex do
   .author-card > * venceria o atributo hidden. */
.author-card > [hidden] { display: none; }
.author-card-foot:has(+ .author-card-staff:not([hidden])) { border-radius: 0; }
.author-card-staff {
  justify-content: space-between; align-items: center; gap: 8px;
  padding-top: 8px; padding-bottom: 10px; border-top: 1px solid #334155;
  border-radius: 0 0 10px 10px; font-size: 12px;
}
.author-card .author-card-staff button {
  background: #7f1d1d; color: #fff; border: 1px solid #b91c1c; border-radius: 6px;
  padding: 4px 10px; font: inherit; font-weight: 700; cursor: pointer;
}
.author-card .author-card-staff button:hover { background: #991b1b; }
.author-card-staff a { color: #93c5fd; font-weight: 700; text-decoration: none; white-space: nowrap; }
.author-card-staff a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .author-card { width: min(290px, calc(100vw - 48px)); }
}

.author-plate-meta { font-size: 13px; color: var(--ink-40); margin-top: 2px; }
.author-plate-stats { color: var(--ink-60, #475569); font-weight: 500; }

/* ── rota de voo do nível de confiança (profiles/_trust_route) ──────── */
.trust-route {
  margin: 16px 0 0; padding: 20px 28px 22px;
  background: #fff; border: 1.5px solid #e2e8f0; border-radius: 16px;
}
.trust-route-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.trust-route-eyebrow { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #94a3b8; }
.trust-route-title { font-size: 1.15rem; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.trust-route-staff { font-size: 0.78rem; font-weight: 600; color: #154194; background: #eff6ff; border-radius: 999px; padding: 3px 10px; }
.trust-route-next { font-size: 0.82rem; color: #64748b; text-align: right; line-height: 1.45; }
.trust-route-next strong { color: #0f172a; }
/* A rota tem largura mínima por marco (nomes legíveis e espaço para o avião
   entre dois deles); quando não cabe, a janela rola e ganha setas. */
.trust-route-window { position: relative; margin-top: 18px; }
.trust-route-viewport { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.trust-route-viewport::-webkit-scrollbar { display: none; }
.trust-route-window.can-prev .trust-route-viewport { mask-image: linear-gradient(to right, transparent 0, #000 44px); }
.trust-route-window.can-next .trust-route-viewport { mask-image: linear-gradient(to left, transparent 0, #000 44px); }
.trust-route-window.can-prev.can-next .trust-route-viewport { mask-image: linear-gradient(to right, transparent 0, #000 44px, #000 calc(100% - 44px), transparent 100%); }
.trust-route .trust-route-arrow {
  position: absolute; top: calc(8px + 28px); z-index: 1; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; padding: 0 0 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; line-height: 1; font-weight: 700; color: var(--primary);
  background: #fff; border: 1.5px solid #e2e8f0; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12); cursor: pointer;
}
.trust-route .trust-route-arrow[hidden] { display: none; }
.trust-route .trust-route-arrow.is-prev { left: -6px; }
.trust-route .trust-route-arrow.is-next { right: -6px; }
.trust-route-track { position: relative; padding: 8px 0 4px; min-width: calc(var(--steps) * 108px); }
.trust-route-line {
  position: absolute; top: calc(8px + 28px); height: 0;
  left: calc(100% / var(--steps) / 2); right: calc(100% / var(--steps) / 2);
  border-top: 3px dashed #cbd5e1;
}
.trust-route-line-done { position: absolute; left: 0; top: -3px; height: 3px; width: var(--plane); background: var(--accent); border-radius: 2px; }
.trust-route-plane {
  position: absolute; left: var(--plane); top: -14px; z-index: 1;
  color: var(--primary); transform: translateX(-50%) rotate(90deg);
  /* Sobre a linha: o fundo branco interrompe o tracejado em volta dele. */
  background: #fff; border-radius: 50%; padding: 2px;
}
.trust-route-stops {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(var(--steps), minmax(0, 1fr));
}
.trust-route-stop { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 0 4px; }
.trust-route-dot {
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  background: var(--accent-soft); border: 2px solid var(--accent);
}
.trust-route-stop.is-current .trust-route-dot { background: #fff; border-width: 3px; box-shadow: 0 0 0 4px var(--accent-soft); }
.trust-route-stop.is-locked .trust-route-dot { background: #fff; border: 2px dashed #cbd5e1; }
.trust-route-name { font-size: 0.85rem; font-weight: 600; color: #334155; }
.trust-route-stop.is-current .trust-route-name { color: #0f172a; font-weight: 800; }
.trust-route-stop.is-locked .trust-route-name { color: #94a3b8; }
@media (max-width: 640px) {
  .trust-route { padding: 16px 14px 18px; }
  .trust-route-next { text-align: left; }
  .trust-route-name { font-size: 0.75rem; }
  /* Nomes curtos ("Raio X", "Econômica"): cabe mais um marco na tela. */
  .trust-route-track { min-width: calc(var(--steps) * 88px); }
}

/* ── badge board no perfil ─────────────────────────────────────────── */
.badge-board { padding: 24px 0; }
.badge-board-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
}
.badge-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 14px 10px; border-radius: 10px; border: 1.5px solid #e2e8f0;
  background: white; transition: box-shadow 0.15s; cursor: default;
  position: relative;
}
.badge-card.earned {
  border-color: color-mix(in srgb, var(--bc) 35%, transparent);
  background: color-mix(in srgb, var(--bc) 5%, white);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--bc) 15%, transparent);
}
/* Ainda não conquistado: só o ícone fica apagado — nome e descrição continuam
   legíveis (é ali que a pessoa descobre como conquistar). */
.badge-card.locked { background: #f8fafc; border-style: dashed; border-color: #cbd5e1; }
.badge-card.locked .badge-card-icon { filter: grayscale(1); opacity: 0.4; }
.badge-card-icon { font-size: 1.8rem; line-height: 1; margin-bottom: 6px; }
.badge-card-name { font-size: 0.78rem; font-weight: 700; color: #1e293b; margin-bottom: 3px; }
.badge-card.locked .badge-card-name { color: #475569; }
/* Raros: selo "Raro" no alto do cartão e borda dourada — em degradê quando
   conquistado, tracejada quando ainda não. */
.badge-card.is-rare.earned {
  border-color: transparent;
  background:
    linear-gradient(color-mix(in srgb, var(--bc) 5%, white), color-mix(in srgb, var(--bc) 5%, white)) padding-box,
    linear-gradient(135deg, #f59e0b, #ec4899, #8b5cf6) border-box;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
}
.badge-card.is-rare.locked { border-color: #e8c66a; background: #fffdf5; }
.badge-card-rare {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  padding: 1px 8px; border-radius: 999px; white-space: nowrap;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: white; background: linear-gradient(135deg, #f59e0b, #ec4899);
}
.badge-card.locked .badge-card-rare { background: #e8c66a; color: #6b4e0a; }
/* Botão "i" no canto do cartão; a descrição (como conquistar) aparece como
   dica ao passar o mouse ou ao focar/tocar no botão — sem JS. Seletor com
   .badge-card na frente para vencer o reset ".mdf-page button". */
.badge-card-info { position: absolute; top: 6px; left: 6px; z-index: 2; }
.badge-card .badge-card-info-btn {
  width: 20px; height: 20px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #cbd5e1; background: #fff; color: #64748b;
  font: italic 700 11px/1 Georgia, serif; cursor: pointer;
}
.badge-card .badge-card-info-btn:hover, .badge-card .badge-card-info-btn:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.badge-card-desc {
  position: absolute; left: -6px; top: calc(100% + 8px); z-index: 20;
  width: 190px; padding: 8px 10px; border-radius: 8px;
  background: #0f172a; color: #f8fafc; text-align: left;
  font-size: 0.75rem; font-weight: 500; line-height: 1.4;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
  visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity 0.12s, transform 0.12s, visibility 0.12s;
  pointer-events: none;
}
.badge-card-desc::before {
  content: ""; position: absolute; top: -5px; left: 12px;
  border: 5px solid transparent; border-top: 0; border-bottom-color: #0f172a;
}
.badge-card-info:hover .badge-card-desc,
.badge-card-info:focus-within .badge-card-desc { visibility: visible; opacity: 1; transform: none; }
.badge-card:hover, .badge-card:focus-within { z-index: 5; }
.badge-card-date { font-size: 0.65rem; color: #10b981; font-weight: 600; margin-top: 4px; }
.badge-card .badge-card-featured-btn {
  position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  padding: 0; border-radius: 50%; border: none; background: transparent;
  color: #cbd5e1; cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
/* Conquistado e não escolhido: estrela sempre visível, só contorno, apagada
   (escurece ao passar o mouse). Escolhido: dourada e preenchida. Seletores
   com .badge-card na frente para vencer o reset ".mdf-page button". */
.badge-card:hover .badge-card-featured-btn { color: #94a3b8; }
.badge-card .badge-card-featured-btn:hover { background: #f1f5f9; color: #64748b; }
.badge-card .badge-card-featured-btn.featured { color: #f59e0b; }
.badge-card .badge-card-featured-btn.featured:hover { background: #fef3c7; color: #d97706; }

.avatar-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  transition: background 0.15s;
}
.avatar-btn:hover { background: rgba(255,255,255,0.12); }
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #5B9BF5, #1E3F9E);
  display: grid; place-items: center;
  color: white;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.avatar.lg { width: 48px; height: 48px; font-size: 18px; }
.avatar.xl { width: 72px; height: 72px; font-size: 26px; }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }

/* ---------- user menu dropdown ---------- */
.user-menu-wrap { position: relative; }
.user-menu-dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  background: white; border: 1.5px solid #e2e8f0;
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 160px; z-index: 9999; overflow: hidden;
}
.user-menu-dropdown.open { display: block; }
.user-menu-item {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 16px; font-size: 0.875rem; font-weight: 500;
  color: #1e293b; text-decoration: none; width: 100%;
  background: none; border: none; cursor: pointer;
  font-family: inherit; transition: background 0.12s; text-align: left;
}
.user-menu-item:hover { background: #f8fafc; }
.user-menu-item--danger { color: #dc2626; }
.user-menu-item--danger:hover { background: #fef2f2; }

/* ---------- share dropdown (1 botão -> menuzinho com 2 ícones) ---------- */
.share-wrap { position: relative; display: inline-block; }
.share-dropdown {
  display: none;
  position: absolute; bottom: calc(100% + 8px); left: 0;
  background: white; border: 1.5px solid #e2e8f0;
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 6px; gap: 4px;
  z-index: 9999;
}
.share-dropdown.open { display: flex; }
.share-item {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0;
  color: #1e293b; background: none; border: none; border-radius: 6px;
  cursor: pointer; text-decoration: none; transition: background 0.12s;
}
.share-item:hover { background: #f8fafc; }
.share-icon--success { color: #166534 !important; }
.share-icon--error { color: #991b1b !important; }

/* ---------- perfil ---------- */
.mdf-profile-card {
  background: white; border: 1.5px solid #e2e8f0;
  border-radius: 16px; overflow: hidden;
}
.mdf-profile-hero {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 32px 32px 24px; border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}
.mdf-profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #5B9BF5, #1E3F9E);
  display: grid; place-items: center; overflow: hidden;
  flex-shrink: 0; color: white; font-weight: 700; font-size: 28px;
}
.mdf-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mdf-profile-avatar--lg { width: 80px; height: 80px; font-size: 32px; }
.mdf-profile-hero-info { flex: 1; min-width: 0; }
.mdf-profile-hero-info h1 { font-size: 1.4rem; font-weight: 800; color: #0f172a; margin: 0 0 4px; }
.mdf-profile-username { font-size: 0.875rem; color: #64748b; margin: 0 0 10px; }
.mdf-profile-meta { display: flex; align-items: center; gap: 12px; font-size: 0.82rem; color: #64748b; flex-wrap: wrap; }
.mdf-profile-badge {
  display: inline-block; padding: 2px 8px; border-radius: 99px;
  background: #f1f5f9; color: #475569; font-size: 0.75rem; font-weight: 600;
}
.mdf-profile-badge--green { background: #dcfce7; color: #166534; }
.mdf-profile-bio { padding: 20px 32px; font-size: 0.9rem; color: #475569; border-bottom: 1px solid #f1f5f9; }
.mdf-profile-stats {
  display: flex; border-bottom: 1px solid #f1f5f9;
}
.mdf-profile-stat {
  flex: 1; padding: 20px; text-align: center; border-right: 1px solid #f1f5f9;
}
.mdf-profile-stat:last-child { border-right: none; }
.mdf-profile-stat-value { display: block; font-size: 1.5rem; font-weight: 800; color: #0f172a; }
.mdf-profile-stat-label { font-size: 0.75rem; color: #94a3b8; font-weight: 500; }
.mdf-profile-section { padding: 8px 0; }
.mdf-profile-section-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; font-size: 0.875rem; border-bottom: 1px solid #f8fafc;
}
.mdf-profile-section-row:last-child { border-bottom: none; }
.mdf-profile-section-label { color: #94a3b8; font-weight: 500; }

/* ---------- perfil público (/membros/:username) ---------- */
.member-page { max-width: 880px; padding-top: 40px; padding-bottom: 60px; }
.mdf-profile-hero .author-plate-line { margin-top: 2px; }
.member-section { margin-top: 28px; }
.member-section-title { font-size: 1.05rem; font-weight: 800; color: #0f172a; margin: 0 0 12px; }
.member-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.member-section-head .member-section-title { margin: 0; }
.member-section-link { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.member-section-link:hover { text-decoration: underline; }
.member-settings { padding: 16px 20px; }
.member-settings form { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.member-settings-option { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 15px; color: #334155; }
.member-section-title span { font-size: 0.85rem; font-weight: 600; color: var(--ink-40); margin-left: 4px; }
.member-empty { font-size: 14px; color: var(--ink-40); margin: 0; }
.member-activity { list-style: none; margin: 0; padding: 0; background: white; border: 1.5px solid #e2e8f0; border-radius: 16px; }
.member-activity li { padding: 14px 20px; border-bottom: 1px solid #f1f5f9; }
.member-activity li:last-child { border-bottom: none; }
.member-activity-title { display: block; font-weight: 700; font-size: 15px; color: #0f172a; text-decoration: none; }
.member-activity-title:hover { color: var(--accent); text-decoration: underline; }
.member-activity-excerpt { margin: 4px 0; font-size: 14px; color: #475569; line-height: 1.5; }
.member-activity-meta { font-size: 13px; color: var(--ink-40); }
@media (max-width: 640px) {
  .member-page { padding-top: 20px; }
  .member-page .mdf-profile-hero, .mdf-profile-main .mdf-profile-hero { padding: 20px; }
  .member-page .mdf-profile-stat, .mdf-profile-main .mdf-profile-stat { padding: 14px 8px; }
}

/* edit form */
.mdf-profile-edit-header { padding: 28px 32px 0; }
.mdf-profile-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: #64748b; text-decoration: none;
  margin-bottom: 12px;
}
.mdf-profile-back:hover { color: #334155; }
.mdf-profile-edit-header h2 { font-size: 1.25rem; font-weight: 800; color: #0f172a; margin: 0 0 24px; }
.mdf-profile-form { padding: 0 32px 32px; }
.mdf-profile-form-group { margin-bottom: 28px; }
.mdf-profile-form-label { display: block; font-size: 0.8rem; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.mdf-profile-input {
  width: 100%; padding: 10px 14px; border: 1.5px solid #e2e8f0;
  border-radius: 8px; font-size: 0.9rem; font-family: inherit;
  color: #0f172a; outline: none; transition: border-color 0.15s;
  box-sizing: border-box;
}
.mdf-profile-input:focus { border-color: #3b82f6; }
.mdf-profile-hint { font-size: 0.78rem; color: #94a3b8; margin-top: 6px; }
.mdf-profile-avatar-edit { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.mdf-profile-avatar-fields { flex: 1; min-width: 200px; }
.mdf-profile-checkbox-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.mdf-profile-checkbox { width: 18px; height: 18px; margin-top: 2px; accent-color: #3b82f6; flex-shrink: 0; cursor: pointer; }
.mdf-profile-errors { background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; font-size: 0.85rem; color: #991b1b; }
.mdf-profile-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 8px; border-top: 1px solid #f1f5f9; margin-top: 8px; }

/* ---------- perfil: navegação lateral (Perfil / Emblemas) ---------- */
.mdf-profile-layout { display: flex; align-items: flex-start; gap: 28px; }
.mdf-profile-main { flex: 1; min-width: 0; }
.mdf-profile-nav {
  flex-shrink: 0; width: 190px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 24px;
}
.mdf-profile-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px; position: relative;
  font-size: 0.875rem; font-weight: 600; color: #64748b;
  transition: background 0.12s, color 0.12s;
}
.mdf-profile-nav-item:hover { background: #f1f5f9; color: #0f172a; }
.mdf-profile-nav-item.active { background: #eff6ff; color: #1d4ed8; }
.mdf-profile-nav-item.active::before {
  content: ""; position: absolute; left: -8px; top: 8px; bottom: 8px;
  width: 3px; background: #1d4ed8; border-radius: 0 2px 2px 0;
}
.mdf-profile-nav-item svg { flex-shrink: 0; opacity: 0.85; }
@media (max-width: 640px) {
  /* Em coluna, o flex-start deixaria a área principal com a largura do conteúdo
     (a rota de voo esticaria a página em vez de rolar na própria janela). */
  .mdf-profile-layout { flex-direction: column; align-items: stretch; }
  .mdf-profile-nav { width: 100%; flex-direction: row; position: static; overflow-x: auto; }
}

/* ---------- sub header / breadcrumb ---------- */
.subbar {
  background: var(--primary);
  color: white;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.subbar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #C9D7E8;
}
.subbar-inner .crumb { color: white; font-weight: 600; }
.subbar-inner .sep { opacity: 0.5; }

/* ---------- page ---------- */
.page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px;
  width: 100%;
  flex: 1;
}
.page-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
.page-grid-3 {
  display: grid;
  grid-template-columns: 240px 1fr 320px;
  gap: 28px;
  align-items: start;
}
.page-grid-2 {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

/* Criar tópico: formulário + dicas. Fica antes do bloco mobile para que a
   grade empilhe no celular (estilo inline aqui não deixaria). */
.new-topic-grid { grid-template-columns: 1fr 280px; }
.new-topic-section { padding: 20px 24px; }
.new-topic-section--tight { padding-top: 16px; padding-bottom: 16px; }
.new-topic-actions { padding: 14px 24px; }

/* ---------- topics panel (unified filter + list) ---------- */
.topics-panel {
  display: grid;
  grid-template-columns: 200px 1fr;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}
.topics-panel-nav {
  border-right: 1px solid var(--rule);
  background: var(--paper);
  padding: 8px 0;
}
.tpn-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-60);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  border-left: 3px solid transparent;
}
.tpn-item:hover { background: white; color: var(--ink); }
.tpn-item.active {
  background: white;
  color: var(--primary);
  font-weight: 700;
  border-left-color: var(--primary);
}
.tpn-icon { font-size: 15px; flex-shrink: 0; }
.tpn-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpn-count {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--ink-40);
  background: var(--rule-soft);
  padding: 1px 6px;
  border-radius: 10px;
  flex-shrink: 0;
}
.tpn-item.active .tpn-count { background: var(--primary-50); color: var(--primary); }
.topics-panel-content { min-width: 0; }
.topics-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule-soft);
  background: white;
}
.topics-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- cards / blocks ---------- */
.card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-hd {
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule-soft);
  display: flex; align-items: center; justify-content: space-between;
}
.card-hd h3 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -0.005em; }
.card-bd { padding: 20px; }

.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin: 0 0 12px;
}

.page-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink);
}
.page-lede {
  font-size: 15px;
  color: var(--ink-60);
  margin: 0;
  max-width: 70ch;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  transition: all 0.12s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--primary-deep); color: white; }
.btn-primary:hover { background: #051a30; }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink-80); border-color: var(--rule); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--ink-20); }
/* Botão de curtir "aceso" quando o usuário já curtiu (via session_controller) */
.like-btn.is-liked { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }

/* ---------- reações (shared/_reactions) ---------- */
.reactions { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reaction-summary { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; }
.reaction-summary.is-static { cursor: default; }
.reaction-summary-emojis { letter-spacing: 1px; font-size: 15px; line-height: 1; }
.reaction-summary-emojis.is-empty { filter: grayscale(1); opacity: 0.55; }
.reaction-summary:hover .reaction-summary-emojis.is-empty { filter: none; opacity: 1; }
.reaction-summary-count { font-weight: 700; }
.reaction-picker { position: relative; }
.reaction-picker > summary { list-style: none; cursor: pointer; user-select: none; }
.reaction-picker > summary::-webkit-details-marker { display: none; }
.reaction-menu {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  width: 252px; padding: 6px;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.reaction-option {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: transparent; cursor: pointer; font: inherit; color: var(--ink-80);
  transition: background 0.12s, transform 0.12s;
}
.reaction-option:hover, .reaction-option:focus-visible { background: var(--paper-2); }
.reaction-option:hover .reaction-option-emoji { transform: scale(1.15); }
.reaction-option.is-mine { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.reaction-option-emoji { font-size: 22px; line-height: 1; transition: transform 0.12s; }
.reaction-option-label { font-size: 11px; font-weight: 600; white-space: nowrap; }

/* Menu "Moderar" da equipe (shared/_moderation_menu): mesmo <details> do
   seletor de reação; o mod_menu_controller passa para .is-right quando não
   cabe à direita. Seletores com .mod-menu na frente para vencer o reset
   .mdf-page button. */
.mod-menu { position: relative; }
.mod-menu > summary { list-style: none; cursor: pointer; user-select: none; }
.mod-menu > summary::-webkit-details-marker { display: none; }
.mod-menu-list {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0;
  display: flex; flex-direction: column; min-width: 220px; padding: 6px;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.mod-menu-list.is-right { left: auto; right: 0; }
.mod-menu-list form { margin: 0; }
.mod-menu .mod-menu-item {
  display: block; width: 100%; text-align: left; padding: 8px 10px;
  border: 0; border-radius: var(--radius-sm); background: transparent;
  font: inherit; font-size: 14px; color: var(--ink-80); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.mod-menu .mod-menu-item:hover, .mod-menu .mod-menu-item:focus-visible { background: var(--paper-2); }
.mod-menu .mod-menu-item.is-danger { color: var(--danger); }
.mod-menu .mod-menu-item.is-danger:hover { background: var(--danger-soft); }
/* Menu "⋯" com o Denunciar (shared/_report_menu): na resposta fica no canto
   superior direito do card (.is-corner); no tópico, no fim da primeira linha.
   A lista abre sempre para a esquerda do botão. */
.more-menu-wrap.is-corner { position: absolute; top: 12px; right: 12px; z-index: 2; }
.more-menu .more-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; color: var(--ink-40);
}
.more-menu .more-menu-btn:hover, .more-menu[open] .more-menu-btn { background: var(--paper-2); color: var(--ink-80); }
.more-menu .mod-menu-list { left: auto; right: 0; min-width: 0; width: max-content; padding: 4px; }
.more-menu .mod-menu-item { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 13px; }

/* Caixa de denúncia (<dialog>). Botões com .report-dialog na frente para
   vencer o reset .mdf-page button. */
.report-dialog {
  width: min(440px, calc(100vw - 32px)); margin: auto; padding: 24px; border: 0;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); color: var(--ink);
}
.report-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
.report-dialog-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.report-dialog-help { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--ink-60); }
.report-dialog-reasons { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.report-dialog-reason {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer;
  border: 1px solid var(--rule-soft); border-radius: var(--radius-sm); font-size: 15px;
}
.report-dialog-reason:hover { background: var(--paper-2); }
.report-dialog-reason:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.report-dialog-details { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.report-dialog-details em { font-weight: 400; color: var(--ink-40); }
.report-dialog-details textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 16px; font-weight: 400; resize: vertical;
  border: 1px solid var(--rule); border-radius: var(--radius-sm);
}
.report-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.report-dialog .btn-ghost { border: 1px solid var(--rule); background: transparent; color: var(--ink-80); }
.report-dialog .btn-primary { background: var(--primary-deep); color: white; }
.report-dialog .btn-primary:hover { background: #051a30; }

.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: #F5D0D0; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-lg { padding: 12px 20px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- pills / badges ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  background: var(--paper-2);
  color: var(--ink-60);
  border: 1px solid var(--rule);
}
.pill.solid { background: var(--primary-deep); color: white; border-color: transparent; }
.pill.accent { background: var(--accent-soft); color: var(--accent-ink); border-color: #B9CFF4; }
.pill.success { background: var(--success-soft); color: #1F6B41; border-color: #BFE5CD; }
.pill.warn { background: var(--warn-soft); color: #935221; border-color: #F2D2AB; }
.pill.danger { background: var(--danger-soft); color: #8A2E2E; border-color: #F2BDBD; }
.pill.mono { font-family: var(--font-mono); font-size: 10.5px; }

.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-40);
}
.dot.online { background: var(--success); }
.dot.accent { background: var(--accent); }
.dot.danger { background: var(--danger); }

/* ---------- categories ---------- */
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  border-left: 3px solid;
}
.cat-chip[data-color="air"] { background: #E8EEFB; color: #14307A; border-color: #1E3F9E; }
.cat-chip[data-color="hotel"] { background: #DCE8FB; color: #0E2E6E; border-color: #3B7FE8; }
.cat-chip[data-color="miles"] { background: #E1ECFD; color: #1A4BB8; border-color: #5B9BF5; }
.cat-chip[data-color="car"] { background: #FBE5E5; color: #8A2E2E; border-color: #D64545; }
.cat-chip[data-color="insure"] { background: #F0EAFF; color: #3B2A7A; border-color: #6B4EC9; }
.cat-chip[data-color="guide"] { background: #E4F1F4; color: #195766; border-color: #4A9AAD; }
.cat-chip[data-color="card"] { background: #FCEFDE; color: #935221; border-color: #E0853C; }
.cat-chip[data-color="meta"] { background: #F2EDE2; color: #4A5568; border-color: #8894A6; }

/* ---------- vote column ---------- */
.vote {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; min-width: 54px;
}
.vote button {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: var(--ink-40);
  border-radius: 8px;
  transition: all 0.15s;
}
.vote button:hover { background: var(--paper-2); color: var(--ink); }
.vote button.active.up { color: var(--success); background: var(--success-soft); }
.vote button.active.down { color: var(--danger); background: var(--danger-soft); }
.vote .score {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* ---------- user meta ---------- */
.umeta {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
}
.umeta .uname { font-weight: 600; color: var(--ink); }
.umeta .udate { color: var(--ink-40); font-size: 12px; }

.rep {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-60);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- topic row ---------- */
.topic-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--rule-soft);
  align-items: start;
  transition: background 0.1s;
  cursor: pointer;
}
.topic-row:hover { background: var(--rule-soft); }
.topic-row:last-child { border-bottom: none; }

.topic-stats {
  display: flex; flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.topic-stat {
  display: flex;
  justify-content: space-between;
  color: var(--ink-40);
}
.topic-stat strong { color: var(--ink-80); font-weight: 600; }
.topic-stat.hot strong { color: var(--accent-deep); }
.topic-stat.answered strong { color: var(--success); }

.topic-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.topic-excerpt {
  font-size: 13px;
  color: var(--ink-60);
  margin: 0 0 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.topic-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-40);
  flex-wrap: wrap;
}
.topic-meta .uname { color: var(--ink-80); font-weight: 600; }

/* ---------- rich text ---------- */
.prose {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-80);
}
.prose p { margin: 0 0 14px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.prose blockquote {
  margin: 16px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-style: italic;
  border-radius: 0 8px 8px 0;
}
/* Imagens no conteúdo (tópico, resposta, widget): nunca cortadas — cabem
   inteiras numa caixa de até 480px de altura (360px no celular), centralizadas.
   Clicar abre a imagem grande (lightbox_controller.js). A caixa do Cloudinary
   é o dobro disso (ContentImagesHelper). */
.prose img {
  display: block; margin: 12px auto;
  max-width: 100%; max-height: 480px; width: auto; height: auto;
  object-fit: contain; border-radius: 8px;
}
.prose .mdf-zoom { display: block; cursor: zoom-in; }
.prose .attachment--preview { display: block; width: 100%; margin: 4px 0; }
.prose .attachment--preview img { margin: 8px auto; }
.prose .attachment__caption {
  font-size: 13px; color: var(--ink-60); text-align: center; margin-top: -2px;
}

/* Galeria: fotos enviadas juntas viram uma grade de quadrinhos iguais. Aqui o
   quadrinho corta (cover) para alinhar a grade — a foto inteira abre no clique. */
.prose .attachment-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0;
}
.prose .attachment-gallery--2,
.prose .attachment-gallery--4 { grid-template-columns: repeat(2, 1fr); }
.prose .attachment-gallery > action-text-attachment,
.prose .attachment-gallery > .attachment { max-width: none; padding: 0; flex: none; }
.prose .attachment-gallery .attachment--preview { margin: 0; }
.prose .attachment-gallery img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: none;
  object-fit: cover; margin: 0; border-radius: 6px;
}
.prose .attachment-gallery .attachment__caption { display: none; }

@media (max-width: 720px) {
  .prose img { max-height: 360px; }
  .prose .attachment-gallery { gap: 4px; }
}

/* Lightbox (lightbox_controller.js) */
.mdf-lightbox {
  border: 0; padding: 0; margin: auto; background: transparent;
  max-width: 100vw; max-height: 100vh; overflow: visible;
}
.mdf-lightbox::backdrop { background: rgba(10, 15, 30, .88); }
.mdf-lightbox img {
  display: block; max-width: 94vw; max-height: 90vh; width: auto; height: auto;
  border-radius: 6px; cursor: zoom-out;
}
.mdf-lightbox button {
  position: fixed; border: 0; border-radius: 999px; width: 44px; height: 44px;
  background: rgba(255,255,255,.14); color: #fff; font-size: 22px; line-height: 44px;
  cursor: pointer;
}
.mdf-lightbox button:hover { background: rgba(255,255,255,.28); }
.mdf-lightbox [data-close] { top: 14px; right: 14px; }
.mdf-lightbox [data-prev] { left: 14px; top: 50%; transform: translateY(-50%); }
.mdf-lightbox [data-next] { right: 14px; top: 50%; transform: translateY(-50%); }
.mdf-lightbox .mdf-lightbox-count {
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-size: 13px;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--paper-2);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--rule);
}
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 4px; }

/* ---------- form ---------- */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-80);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.input, .textarea, .select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 14px;
  background: white;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,75,122,0.12);
}
.textarea { resize: vertical; min-height: 100px; }

/* ---------- tabs ---------- */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
}
.tab {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-60);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--primary); border-color: var(--accent); }

/* ---------- toolbar / filters ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.filter-group { display: flex; align-items: center; gap: 6px; background: white; border: 1px solid var(--rule); border-radius: 8px; padding: 3px; }
.filter-chip {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-60);
  border-radius: 6px;
  cursor: pointer;
}
.filter-chip:hover { color: var(--ink); }
.filter-chip.active { background: var(--paper-2); color: var(--ink); }

/* ---------- search input ---------- */
.search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 8px;
  flex: 1;
  max-width: 560px;
}
.search-input input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 13.5px;
  color: var(--ink);
}
/* form_with ignora a opção `style:` no próprio form (só funciona em
   campos/botões dentro dele) — variações de layout do form_with precisam
   estar numa classe de verdade, não inline, ou são silenciosamente perdidas. */
.search-input.is-wide { max-width: 100%; }

/* ---------- badges user ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge.gold { background: #FFF3DD; color: #8A5A0B; border: 1px solid #F2D99A; }
.badge.silver { background: #EEF0F2; color: #4A5568; border: 1px solid #D0D5DC; }
.badge.bronze { background: #FCEFDE; color: #935221; border: 1px solid #F2D2AB; }
.badge.staff { background: var(--primary-deep); color: white; }
.badge.mod { background: var(--accent); color: white; }

/* ---------- stat card ---------- */
.stat-card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 8px;
}
.stat-val {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-family: var(--font-ui);
  display: flex; align-items: baseline; gap: 6px;
}
.stat-delta { font-size: 12px; font-weight: 600; font-family: var(--font-mono); }
.stat-delta.up { color: var(--success); }
.stat-delta.down { color: var(--danger); }

/* ---------- moderation specific ---------- */
.score-bar {
  height: 6px;
  background: var(--rule-soft);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.score-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s;
}
.score-bar-fill.low { background: var(--success); }
.score-bar-fill.mid { background: var(--warn); }
.score-bar-fill.high { background: var(--danger); }

.shadow-banner {
  background: repeating-linear-gradient(135deg, #2a1a1a 0 8px, #3a2525 8px 16px);
  color: #FFC9C9;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  border: 1px solid #4a2525;
}

.shadow-ban-marker {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  background: #2a1a1a;
  color: #FFC9C9;
  border-radius: 4px;
}

/* ---------- sidebar nav ---------- */
.side-nav { display: flex; flex-direction: column; gap: 1px; }
.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--ink-60);
  cursor: pointer;
  font-weight: 500;
  transition: background 0.1s, color 0.1s;
}
.side-item:hover { background: var(--rule-soft); color: var(--ink); }
.side-item.active { background: var(--primary-50); color: var(--primary-deep); font-weight: 700; }
.side-item .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-40);
}
.side-item.active .count { color: var(--primary); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 60%, #3B7FE8 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,182,54,0.22), transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.hero p { margin: 0; color: #B9C9DC; font-size: 14px; max-width: 56ch; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #8BA4C0; font-weight: 600; }
.hero-stat-val { font-size: 22px; font-weight: 800; font-family: var(--font-mono); letter-spacing: -0.02em; margin-top: 2px; }
.hero-stat-link {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
  width: 200px;
  flex-shrink: 0;
}
.hero-stat-link:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.22); }
.hero-stat-icon { font-size: 22px; line-height: 1; }

/* ---------- utilities ---------- */
.flex { display: flex; }
.row { display: flex; align-items: center; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.grow { flex: 1; }
.muted { color: var(--ink-40); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.bold { font-weight: 700; }
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-body); }
.hide { display: none !important; }

/* ---------- tweaks panel ---------- */
.tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 280px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  overflow: hidden;
  font-family: var(--font-ui);
}
.tweaks-hd {
  padding: 12px 16px;
  background: var(--primary-deep);
  color: white;
  display: flex; align-items: center; justify-content: space-between;
}
.tweaks-hd h4 { margin: 0; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.tweaks-bd { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.tweak-row { display: flex; flex-direction: column; gap: 6px; }
.tweak-row > label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-60); }
.tweak-opts { display: flex; gap: 4px; flex-wrap: wrap; }
.tweak-opt {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  cursor: pointer;
  color: var(--ink-60);
}
.tweak-opt.active { background: var(--primary-deep); color: white; border-color: var(--primary-deep); }

/* ---------- variants ---------- */
body[data-layout="traditional"] .topic-row { grid-template-columns: 44px 1fr auto; gap: 14px; padding: 12px 16px; }
body[data-layout="traditional"] .topic-row .vote { display: none; }
body[data-layout="feed"] .topic-row { grid-template-columns: 1fr; padding: 20px; }
body[data-layout="feed"] .topic-stats { display: none; }

body[data-density="compact"] .topic-row { padding: 12px 16px; }
body[data-density="compact"] .topic-title { font-size: 14.5px; }
body[data-density="compact"] .topic-excerpt { display: none; }

body[data-accent="sky"]    { --accent: #3B7FE8; --accent-deep: #2766D1; --accent-ink: #0E2E6E; --accent-soft: #DCE8FB; }
body[data-accent="royal"]  { --accent: #2E4FCB; --accent-deep: #1F3BAA; --accent-ink: #0B1A66; --accent-soft: #DDE3F8; }
body[data-accent="cyan"]   { --accent: #18A8DB; --accent-deep: #0E84AE; --accent-ink: #0A3A52; --accent-soft: #D4EEF8; }

/* ---------- placeholder image ---------- */
.placeholder-img {
  background-image: repeating-linear-gradient(45deg, var(--paper-2) 0 8px, var(--rule-soft) 8px 16px);
  border: 1px solid var(--rule);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink-40);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* ---------- Trix rich text editor overrides ---------- */
trix-editor {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 14px;
  min-height: 140px;
  background: white;
  outline: none;
}
trix-editor:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,75,122,0.10);
}
/* Anexo agora é só de imagens (ver trix_editor_controller.js) — troca o clipe
   de papel padrão por um ícone de imagem. */
trix-toolbar .trix-button--icon-attach::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
}

trix-toolbar .trix-button-group {
  border: 1px solid var(--rule);
  border-radius: 6px;
}
trix-toolbar .trix-button {
  font-size: 12px;
  color: var(--ink-60);
}
trix-toolbar .trix-button:not(:disabled):active,
trix-toolbar .trix-button.trix-active {
  background: var(--paper-2);
  color: var(--ink);
}

/* ---------- Pagy pagination ---------- */
.pagy nav { display: flex; align-items: center; gap: 4px; }
.pagy a, .pagy span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 10px;
  border: 1px solid var(--rule); border-radius: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink-60);
  background: white; transition: all 0.12s;
}
.pagy a:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink-20); }
.pagy span[aria-current] { background: var(--primary); color: white; border-color: var(--primary); }
.pagy span.gap { border: none; background: none; }

/* ---------- mobile: base ----------
   O layout acima nasceu desktop-first (grades com sidebar fixa, header numa
   linha só). Aqui ficam só os ajustes para não vazar a largura da tela no
   celular — o desktop não muda. */
@media (max-width: 900px) {
  .page-grid,
  .page-grid-2,
  .page-grid-3,
  .topics-panel { grid-template-columns: minmax(0, 1fr); }
  .page-grid > *,
  .page-grid-2 > *,
  .page-grid-3 > * { min-width: 0; }
}

@media (max-width: 720px) {
  .page { padding: 16px; }

  /* Header: marca compacta + ações na 1ª linha, busca em linha própria */
  .topbar-inner { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .top-actions { display: contents; }
  .brand { margin-right: auto; min-width: 0; }
  .brand-logo { height: 52px; }
  .topbar .search-input { order: 99; flex: 1 1 100%; max-width: none; }
  .topbar .search-input span { display: none; } /* dica ⌘K: sem teclado físico */
  /* 16px evita o zoom automático do iOS ao focar o campo */
  .search-input input { font-size: 16px; }
  /* Logado: as ações ("Criar tópico" com texto + avatar) cabem na 1ª linha
     ao lado da logo vertical. O avatar perde o primeiro nome e a setinha. */
  .topbar .btn { white-space: nowrap; }
  .avatar-btn { padding: 2px; }
  .avatar-btn [data-me="first-name"],
  .avatar-btn > svg { display: none; }
  .topbar .icon-btn { width: 34px; height: 34px; }

  /* Breadcrumb: sem quebra palavra a palavra; título longo vira reticências */
  .subbar-inner { padding: 8px 16px; gap: 8px; min-width: 0; }
  .subbar-inner > a { white-space: nowrap; }
  .subbar-inner .crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Ações secundárias viram só ícone. O texto continua no DOM (visualmente
     escondido), então o leitor de tela segue lendo "Compartilhar" etc. */
  .btn .btn-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .btn:has(> .btn-label) { min-width: 36px; min-height: 36px; justify-content: center; gap: 0; }

  /* URLs e palavras longas não empurram a coluna */
  .prose, .page .card p { overflow-wrap: anywhere; }

  /* Criar tópico: menos respiro lateral; "Publicar" ocupa a sobra da linha */
  .new-topic-section { padding-left: 16px; padding-right: 16px; }
  .new-topic-actions { padding: 12px 16px; gap: 12px; }
  .new-topic-actions .btn-primary { flex: 1; justify-content: center; }

  /* Barra do editor: quebra em linhas em vez de rolar de lado (o padrão do
     Trix esconde os últimos botões, como desfazer/refazer) */
  trix-toolbar .trix-button-row { flex-wrap: wrap; gap: 6px; overflow-x: visible; }
  trix-toolbar .trix-button-group { margin-bottom: 0; }
  trix-toolbar { margin-bottom: 8px; }
}
/* < 440px (todo celular em pé) logado: "Criar tópico" vira só o lápis (o
   texto segue no DOM para leitor de tela), e a logo cabe inteira até 320px. */
@media (max-width: 439px) {
  .topbar .topbar-create { width: 34px; height: 34px; padding: 0; gap: 0; justify-content: center; }
  .topbar-create-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}

/* Aviso na resposta/tópico do próprio usuário ainda em moderação */
.moderation-pending-note {
  margin-top: 14px; padding: 10px 14px; border-radius: 8px;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 13px; line-height: 1.5;
}

/* ── melhor resposta (posts/_post) ── */
.card.is-best-answer { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.best-answer-tag {
  display: inline-flex; align-items: center; gap: 5px; margin-bottom: 10px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-soft); color: var(--accent-deep); font-size: 13px; font-weight: 600;
}
.best-answer-btn.is-marked { color: var(--accent-deep); }
.best-answer-suggest {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding: 10px 14px; border-radius: 8px;
  background: var(--accent-soft); border: 1px solid var(--accent-soft); color: var(--accent-ink); font-size: 14px; font-weight: 600;
}

/* ── ilustrações (ArtworkHelper) ────────────────────────────────────
   Emblemas, níveis e reações eram emoji: a altura em em segue o font-size
   que cada lugar já dava ao emoji (inclusive o da tipografia.css). Os
   emblemas têm largura variável (as asas passam do círculo). */
.art { display: inline-block; height: 1.3em; width: auto; max-width: none; vertical-align: middle; }
.ub-icon .art { height: 1.35em; }
.ub-tooltip-icon .art { height: 1.5em; }
.author-plate-pill .art { height: 1.2em; }
.author-card-icon { width: 34px; }
.author-card-icon .art { height: 26px; max-width: 34px; object-fit: contain; }
.trust-route-staff .art { height: 1.25em; }
.trust-route-dot .art { height: 42px; }
/* Nível ainda não alcançado: a ilustração aparece apagada, como no quadro de emblemas. */
.trust-route-stop.is-locked .trust-route-dot .art { filter: grayscale(1); opacity: 0.4; }
/* Quadro de emblemas: ilustração grande, sem estourar o cartão (as largas
   encolhem dentro da caixa). */
.badge-card-icon .art { height: 72px; max-width: 100%; object-fit: contain; }
.badge-card-icon { margin-bottom: 8px; }
/* Reações: o resumo e as listas mostram até 3 lado a lado; no seletor, 7
   opções em 4 colunas. */
.reaction-summary-emojis, .reaction-stat-art { display: inline-flex; align-items: center; gap: 1px; }
.reaction-summary-emojis .art, .reaction-stat-art .art { height: 1.3em; }
.reaction-option-emoji .art { height: 32px; }
.reaction-menu { grid-template-columns: repeat(4, 1fr); width: min(316px, calc(100vw - 32px)); }
.topic-side-cat-icon { font-size: 20px; line-height: 1; }
.topic-side-cat-icon .art { height: 28px; }
