/* Clareira: topo compacto, filtros numa linha, fixados em lista, post com sininho e conversa, lateral com trilha. */
.cl-i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Desafio */
.cartao.cl-desafio { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-color: color-mix(in srgb, var(--acc-orange) 40%, var(--acc-line)); background: radial-gradient(70% 160% at 0% 100%, color-mix(in srgb, var(--acc-orange) 18%, transparent), transparent 70%), var(--acc-panel); }
.cl-brasa { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(160deg, #ff9a3d, #e2560c); color: #1a0e04; }
.cl-brasa .cl-i { width: 27px; height: 27px; }
.cl-desafio-texto { min-width: 0; }
.cl-prazo { font-size: .78rem; color: var(--acc-muted); }
.cl-desafio h3 { margin: 3px 0 0; font-size: 1.08rem; font-weight: 700; }
.cl-desafio p { margin: 2px 0 0; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-desafio-acoes { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cl-ver { font-size: .84rem; font-weight: 600; color: var(--acc-muted); }
.cl-feito { font-size: .76rem; font-weight: 600; color: var(--acc-teal); }
.clareira .ds-vazio { padding: 12px 16px; gap: 10px; }

/* Primeiros passos */
.cartao.cl-passos { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.cl-passos-cab { display: flex; align-items: center; gap: 14px; }
.cl-passos-cab strong, .cl-passos-cab .small { display: block; }
.cl-anel { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 50%; background: conic-gradient(var(--acc-orange) calc(var(--p) * 1%), color-mix(in srgb, var(--acc-text) 12%, transparent) 0); }
.cl-anel i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--acc-panel); font-style: normal; font-size: .78rem; font-weight: 700; }
.cl-proximo { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border-radius: 14px; background: var(--acc-panel-2); border: 1px solid var(--acc-line); color: var(--acc-text); font: inherit; text-align: left; cursor: pointer; }
a.cl-proximo:hover, button.cl-proximo:hover { text-decoration: none; border-color: color-mix(in srgb, var(--acc-orange) 55%, var(--acc-line)); }
.cl-proximo > span { flex: 1; display: grid; gap: 2px; min-width: 0; }
.cl-proximo small { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--acc-teal); }
.cl-passos .ob-nivel { gap: 8px; padding: 10px 12px; }
.cl-passos .ob-nivel h3 { font-size: .95rem; }
.cl-passos .ob-nivel > p { display: none; }
.cl-passos .ob-nivel .nv-opcoes { gap: 6px; }
.cl-passos .ob-nivel .nv-opcoes .btn { min-height: 38px; padding: 0 13px; font-size: .84rem; border-radius: 999px; }
.ob-todos summary { cursor: pointer; padding: 8px 0; font-size: .86rem; font-weight: 600; color: var(--acc-muted); }
.ob-todos .ob-lista { margin-top: 8px; }
.cl-passos form { margin: 0; }
.cl-passos .ob-dispensar { min-height: 36px; padding: 0; }

/* Escreva algo */
.clareira .escreva-linha .gatilho-post { gap: 12px; padding: 7px 16px 7px 7px; border-radius: 999px; }
.clareira .gatilho-post .avatar, .clareira .gatilho-post .avatar .foto { width: 40px; height: 40px; font-size: .8rem; }
.cl-escreva-texto { flex: 1; color: var(--acc-muted); }
.clareira .gatilho-post > .cl-i { color: var(--acc-muted); }
.clareira .ir-vivo { flex-direction: row; gap: 8px; padding: 0 18px; border-radius: 999px; font-size: .88rem; }

/* Categorias e ordem na mesma linha */
.cl-filtros { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--acc-line); }
.cl-cats { display: flex; gap: 22px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cl-cats::-webkit-scrollbar { display: none; }
.cl-cats a { display: flex; flex: none; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 500; color: var(--acc-muted); white-space: nowrap; }
.cl-cats a:hover { text-decoration: none; color: var(--acc-text); }
.cl-cats a[aria-current] { color: var(--acc-text); font-weight: 700; box-shadow: inset 0 -2px 0 var(--acc-orange); }
.cl-ordem { flex: none; }
.cl-ordem > summary { display: flex; align-items: center; justify-content: center; gap: 6px; width: auto; height: auto; min-width: 40px; min-height: 40px; padding: 0 8px; list-style: none; cursor: pointer; font-size: .84rem; font-weight: 600; color: var(--acc-muted); }
.cl-ordem .menu-lista { right: 0; min-width: 220px; z-index: 25; }
.cl-ordem .menu-lista a[aria-current] { color: var(--acc-orange); }

/* Fixados */
.cl-fixados { border-radius: 16px; border: 1px solid color-mix(in srgb, var(--acc-orange) 55%, var(--acc-line)); background: var(--acc-panel); overflow: hidden; }
.cl-fixados header { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: color-mix(in srgb, var(--acc-orange) 13%, transparent); color: var(--acc-orange); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cl-fixados header b { display: grid; place-items: center; min-width: 19px; height: 19px; border-radius: 999px; background: var(--acc-orange); color: var(--acc-on-orange); font-size: .68rem; letter-spacing: 0; }
.cl-fixados .cl-pino { width: 15px; height: 15px; color: var(--acc-orange); fill: color-mix(in srgb, var(--acc-orange) 40%, transparent); }
.cl-fixados a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; font-size: .9rem; font-weight: 600; border-top: 1px solid var(--acc-line); }
.cl-fixados a:hover { text-decoration: none; background: color-mix(in srgb, var(--acc-text) 5%, transparent); }
.cl-fixados a > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-fixados small { display: flex; align-items: center; gap: 4px; color: var(--acc-muted); font-weight: 500; }
.cl-fixados small .cl-i { width: 14px; height: 14px; }
.cl-fixados .cl-vai { width: 15px; height: 15px; color: var(--acc-muted); }

/* Post: sininho, chama acesa e quem esta conversando */
.post-cab .sino { width: 38px; height: 38px; }
.post-cab .sino.ligado { background: color-mix(in srgb, var(--acc-orange) 14%, transparent); }
.post-cab .menu > summary { font-weight: 800; }
.curtir.acesa { color: var(--acc-orange); }
.curtir.acesa .chama { fill: color-mix(in srgb, var(--acc-orange) 30%, transparent); }
.curtir[aria-pressed=true] .chama { fill: currentColor; }
.acoes .ultimo-coment { display: flex; align-items: center; gap: 8px; margin-left: auto; min-height: 40px; font-size: .8rem; color: var(--acc-muted); white-space: nowrap; line-height: 1.2; }
.acoes .ultimo-coment:hover { text-decoration: none; color: var(--acc-text); }
.cl-rostos { display: flex; }
.cl-rostos .avatar, .cl-rostos .avatar .foto { width: 26px; height: 26px; font-size: .56rem; }
.cl-rostos .avatar + .avatar { margin-left: -8px; }
.cl-rostos .avatar .foto { border: 2px solid var(--acc-panel); }

/* Lateral */
.clareira .lat-clareira .cartao { padding: 16px 18px; }
.cartao.cl-evento { display: flex; align-items: center; gap: 14px; }
.cl-evento-texto { display: grid; gap: 2px; min-width: 0; }
.cl-data { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 62px; flex: none; border-radius: 14px; background: color-mix(in srgb, var(--acc-orange) 14%, transparent); color: var(--acc-orange); }
.cl-data b { font-family: "Archivo Black", Inter, sans-serif; font-weight: 400; font-size: 1.45rem; line-height: 1; }
.cl-data small { font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.clareira .cartao.continuar { display: flex; flex-direction: column; gap: 4px; }
.cl-barra { display: block; height: 6px; margin: 6px 0; border-radius: 6px; background: color-mix(in srgb, var(--acc-text) 12%, transparent); overflow: hidden; }
.cl-barra i { display: block; height: 100%; background: var(--acc-orange); }
.cl-continuar-acao { font-size: .84rem; font-weight: 600; color: var(--acc-orange); }
.cl-nivel-nome { margin: 4px 0 0; font-size: 1.02rem; }
.cl-trilha { position: relative; display: flex; justify-content: space-between; align-items: center; margin: 14px 4px 8px; }
.cl-trilha::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; margin-top: -1px; background: color-mix(in srgb, var(--acc-text) 12%, transparent); }
.cl-trilha i { position: relative; width: 11px; height: 11px; border-radius: 50%; background: color-mix(in srgb, var(--acc-text) 18%, var(--acc-panel)); }
.cl-trilha i.on { background: var(--acc-orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc-orange) 22%, transparent); }
.cl-pontos { margin: 0; }

@media (max-width: 720px) {
  .clareira > .pilha { gap: 12px; grid-template-columns: minmax(0, 1fr); }
  .cartao.cl-desafio { grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; padding: 14px; }
  .cl-brasa { width: 42px; height: 42px; border-radius: 13px; }
  .cl-brasa .cl-i { width: 22px; height: 22px; }
  .cl-desafio h3 { font-size: 1rem; line-height: 1.3; }
  .cl-desafio p { display: none; }
  .cl-desafio-acoes { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; }
  .cl-desafio-acoes .btn { flex: 1; justify-content: center; white-space: nowrap; }
  .cl-ver { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; }
  .cl-feito { flex-basis: 100%; }
  .clareira .ir-vivo { flex-direction: row; padding: 0 14px; font-size: .8rem; }
  .cl-filtros { margin: 0 -16px; padding: 0 8px 0 16px; }
  .cl-ordem > summary span { display: none; }
  .cl-passos .ob-dispensar { min-height: 40px; }
  .ob-todos summary { padding: 11px 0; }
  .post-cab .sino { width: 40px; height: 40px; }
  .post-cab .sino-post + .menu { margin-left: -6px; }
  .acoes .ultimo-coment { line-height: 1.2; }
}

/* Animacao da chama ao curtir (pecas temporarias criadas no toque) */
.curtir { position: relative; -webkit-tap-highlight-color: transparent; }
.curtir [data-total] { display: inline-block; }
.curtir .chama-efeito { position: absolute; pointer-events: none; z-index: 2; }
.curtir i.brilho { width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 40, .65), rgba(255, 122, 26, .18) 45%, transparent 70%); }
.curtir i.faisca { border-radius: 50%; }
.curtir.acendendo > .chama:not(.cheia) { fill: color-mix(in srgb, var(--acc-orange) 12%, transparent); filter: none; }
.curtir > .chama.cheia { margin: 0; fill: currentColor; transition: none; }

/* Lista de membros ao digitar "@" */
.mencao-lista { position: fixed; z-index: 120; overflow-y: auto; margin: 0; padding: 6px; border-radius: 16px; border: 1px solid var(--acc-line); background: var(--acc-panel-2); color: var(--acc-text); box-shadow: var(--acc-shadow-up); overscroll-behavior: contain; }
.mencao-op { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px; border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mencao-op[aria-selected=true], .mencao-op:hover { background: color-mix(in srgb, var(--acc-orange) 15%, transparent); }
.mencao-foto { display: grid; place-items: center; width: 34px; height: 34px; flex: none; overflow: hidden; border-radius: 50%; background: linear-gradient(150deg, #4a2c1c, #1f3a37); color: #fff; font-size: .7rem; font-weight: 700; }
.mencao-foto img { width: 100%; height: 100%; object-fit: cover; }
.mencao-texto { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.mencao-texto strong, .mencao-texto small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mencao-texto small { color: var(--acc-muted); }
.mencao-staff { flex: none; padding: 2px 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--acc-orange) 55%, transparent); color: var(--acc-orange); font-size: .68rem; font-weight: 700; }
.mencao-vazio { margin: 0; padding: 12px; font-size: .86rem; color: var(--acc-muted); }

/* Marcacao colorida enquanto escreve */
.mencao-pai { position: relative; }
.mencao-espelho { position: absolute; box-sizing: border-box; margin: 0; overflow: hidden; pointer-events: none; white-space: pre-wrap; overflow-wrap: break-word; border-style: solid; border-color: transparent; z-index: 1; }
textarea.com-mencao { color: transparent; -webkit-text-fill-color: transparent; caret-color: var(--acc-text); }
.mencao-viva { color: var(--acc-teal); -webkit-text-fill-color: var(--acc-teal); border-radius: 4px; background: color-mix(in srgb, var(--acc-teal) 18%, transparent); }  /* sem negrito: mudar a largura desalinharia o cursor */
/* no editor de post: cores escritas por extenso porque o Safari nao le variaveis dentro de ::highlight */
::highlight(mencao) { color: #27d3c0; background-color: rgba(39, 211, 192, .18); }
:root[data-theme="light"] ::highlight(mencao) { color: #0a8377; background-color: rgba(10, 131, 119, .14); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) ::highlight(mencao) { color: #0a8377; background-color: rgba(10, 131, 119, .14); } }


/* a marcacao no texto do post usa a mesma cor dos comentarios (a regra de link do texto pintava de laranja) */
.conteudo-aula a.mencao { color: var(--acc-teal); text-decoration: none; font-weight: 600; }
