/* Rhema: interface. Registro "produto": sóbrio, legível, discreto. Tokens em OKLCH; claro e escuro. */
:root {
  --bg: oklch(0.985 0.003 150);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.955 0.006 150);
  --ink: oklch(0.22 0.01 150);
  --ink-2: oklch(0.4 0.012 150);
  --ink-3: oklch(0.5 0.012 150);
  --line: oklch(0.89 0.007 150);
  --line-forte: oklch(0.78 0.01 150);
  --accent: oklch(0.42 0.09 150);
  --accent-forte: oklch(0.36 0.09 150);
  --accent-ink: oklch(0.99 0.005 150);
  --accent-soft: oklch(0.94 0.03 150);
  --danger: oklch(0.5 0.17 25);
  --danger-soft: oklch(0.95 0.03 25);
  --warn-soft: oklch(0.95 0.05 85);
  --warn-ink: oklch(0.42 0.1 70);
  --foco: oklch(0.6 0.12 150);
  --sombra: 0 1px 2px oklch(0 0 0 / 0.06), 0 8px 24px oklch(0 0 0 / 0.06);
  --raio: 12px;
  --raio-p: 8px;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Inter, Roboto, sans-serif;
  --leitura: ui-serif, "Iowan Old Style", "Charter", "Palatino", Georgia, "Times New Roman", serif;
  --z-fixo: 10; --z-folha: 20; --z-toast: 30;
  --dur: 180ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sb-topo: env(safe-area-inset-top, 0px);
  --sb-baixo: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.17 0.008 150);
    --surface: oklch(0.21 0.009 150);
    --surface-2: oklch(0.255 0.01 150);
    --ink: oklch(0.94 0.005 150);
    --ink-2: oklch(0.76 0.01 150);
    --ink-3: oklch(0.66 0.01 150);
    --line: oklch(0.3 0.01 150);
    --line-forte: oklch(0.4 0.012 150);
    --accent: oklch(0.74 0.1 150);
    --accent-forte: oklch(0.8 0.1 150);
    --accent-ink: oklch(0.16 0.02 150);
    --accent-soft: oklch(0.27 0.04 150);
    --danger: oklch(0.72 0.15 25);
    --danger-soft: oklch(0.26 0.05 25);
    --warn-soft: oklch(0.28 0.05 85);
    --warn-ink: oklch(0.85 0.1 85);
    --foco: oklch(0.78 0.1 150);
    --sombra: 0 1px 2px oklch(0 0 0 / 0.3), 0 8px 24px oklch(0 0 0 / 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 var(--ui); font-feature-settings: "tnum" 1;
  min-height: 100dvh; padding-bottom: calc(72px + var(--sb-baixo));
  -webkit-tap-highlight-color: transparent;
}
body.sem-rodape { padding-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.15em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; border-radius: 6px; }
.pular { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: var(--z-toast); }
.pular:focus { left: 8px; }
[hidden] { display: none !important; }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Topo */
.topo {
  position: sticky; top: 0; z-index: var(--z-fixo);
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--sb-topo)) 16px 10px;
  background: color-mix(in oklch, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.marca { font-family: var(--leitura); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); text-decoration: none; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-forte); background: var(--surface);
  display: grid; place-items: center; font-weight: 600; font-size: 0.95rem; color: var(--ink-2);
}
.avatar:hover { background: var(--surface-2); }

/* Conteúdo */
.principal { max-width: 44rem; margin: 0 auto; padding: 16px 16px 24px; }
.principal:focus { outline: none; }
.secao { margin-top: 24px; }
.titulo-pagina { font-size: 1.5rem; margin: 8px 0 4px; }
.sub { color: var(--ink-2); }
.meta { color: var(--ink-3); font-size: 0.9rem; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: var(--raio-p); border: 1px solid transparent;
  font-weight: 600; text-decoration: none; transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), opacity var(--dur);
}
.btn:active { transform: scale(0.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.btn-primario { background: var(--accent); color: var(--accent-ink); }
.btn-primario:hover { background: var(--accent-forte); }
.btn-secundario { background: var(--surface); border-color: var(--line-forte); color: var(--ink); }
.btn-secundario:hover { background: var(--surface-2); }
.btn-fantasma { background: transparent; color: var(--ink-2); }
.btn-fantasma:hover { background: var(--surface-2); color: var(--ink); }
.btn-perigo { background: transparent; color: var(--danger); border-color: color-mix(in oklch, var(--danger) 35%, transparent); }
.btn-perigo:hover { background: var(--danger-soft); }
.btn-pequeno { min-height: 36px; padding: 0 12px; font-size: 0.9rem; font-weight: 500; }
.btn-largo { width: 100%; }
.btn .giro { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: giro 0.8s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }

/* Campos */
.campo { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.rotulo { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0.01em; }
.entrada, .area, .seletor {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--raio-p);
  border: 1px solid var(--line-forte); background: var(--surface); color: var(--ink);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.entrada::placeholder, .area::placeholder { color: var(--ink-3); }
.entrada:focus, .area:focus, .seletor:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.area { min-height: 140px; resize: vertical; line-height: 1.55; }
.area-leitura { font-family: var(--leitura); font-size: 1.05rem; min-height: 220px; }
.seletor { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.ajuda { font-size: 0.85rem; color: var(--ink-3); }
.erro-campo { color: var(--danger); font-size: 0.9rem; }
.linha-dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .linha-dupla { grid-template-columns: 1fr; } }

/* Chips de escolha e filtro */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-forte);
  background: var(--surface); color: var(--ink-2); font-weight: 500; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"], .chip.ativo { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip .n { font-size: 0.8rem; opacity: 0.8; }
.chips-rolagem { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; margin: 0 -16px; scrollbar-width: none; }
.chips-rolagem::-webkit-scrollbar { display: none; }
.chips-rolagem .chip { flex: none; }

/* Busca */
.busca { position: relative; margin-top: 8px; }
.busca svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.busca .entrada { padding-left: 40px; padding-right: 40px; }
.busca .limpar { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; border-radius: 50%; color: var(--ink-3); display: grid; place-items: center; }
.busca .limpar:hover { background: var(--surface-2); color: var(--ink); }
.filtros { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.filtros .seletor { min-height: 40px; padding: 6px 32px 6px 12px; font-size: 0.95rem; width: auto; flex: 1; }
.barra-resultado { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; color: var(--ink-3); font-size: 0.9rem; }

/* Lista de palavras */
.mes { margin-top: 22px; font-size: 0.85rem; font-weight: 600; color: var(--ink-3); text-transform: none; letter-spacing: 0.02em; }
.lista { list-style: none; margin: 8px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--raio); overflow: hidden; }
.item { border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; text-decoration: none; color: inherit; transition: background var(--dur); }
.item a:hover { background: var(--surface-2); }
.item a:active { background: var(--accent-soft); }
.item-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.85rem; color: var(--ink-3); }
.item-meta .para { color: var(--accent); font-weight: 600; }
.item-titulo { font-family: var(--leitura); font-size: 1.08rem; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-titulo.vazio { color: var(--ink-3); font-style: italic; }
.item-lado { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 0.85rem; color: var(--ink-3); white-space: nowrap; }
.pilula { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); font-size: 0.78rem; font-weight: 600; color: var(--ink-2); }
.pilula.pendente { background: var(--warn-soft); color: var(--warn-ink); }
.pilula.pendente::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulsa 1.4s ease-in-out infinite; }
.pilula.erro { background: var(--danger-soft); color: var(--danger); }
.pilula.trecho { background: var(--accent-soft); color: var(--accent-forte); }
@keyframes pulsa { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.vazio { text-align: center; padding: 48px 20px; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line-forte); border-radius: var(--raio); margin-top: 16px; }
.vazio h2 { font-size: 1.1rem; margin-bottom: 6px; }
.vazio p { max-width: 36ch; margin: 0 auto 14px; }
.esqueleto { height: 72px; border-radius: var(--raio); background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: brilho 1.2s linear infinite; margin-top: 8px; }
@keyframes brilho { to { background-position: -200% 0; } }

/* Detalhe */
.cabeca { margin-top: 8px; }
.cabeca .data { font-size: 0.95rem; color: var(--ink-2); font-weight: 500; }
.cabeca h1 { font-family: var(--leitura); font-weight: 600; font-size: 1.55rem; line-height: 1.25; margin-top: 4px; }
.cabeca .linha-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; color: var(--ink-2); }
.cabeca .linha-meta strong { color: var(--ink); font-weight: 600; }
.tocador { margin-top: 18px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--raio); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.tocador .play { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.tocador .play:hover { background: var(--accent-forte); }
.tocador .play svg { width: 22px; height: 22px; }
.tocador .faixa { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; }
.tocador .faixa::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--prog, 0%), var(--line-forte) var(--prog, 0%)); }
.tocador .faixa::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 1px 3px oklch(0 0 0 / 0.2); }
.tocador .faixa::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-forte); }
.tocador .faixa::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
.tocador .faixa::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.tocador .tempo { font-size: 0.85rem; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 8ch; text-align: right; }
.tocador .velocidade { grid-column: 1 / -1; display: flex; gap: 6px; justify-content: flex-end; }
.tocador .velocidade button { border: 0; background: transparent; color: var(--ink-3); font-size: 0.8rem; font-weight: 600; min-height: 32px; padding: 0 8px; border-radius: 6px; }
.tocador .velocidade button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }
.imagem-palavra { margin-top: 18px; border-radius: var(--raio); max-width: 100%; display: block; border: 1px solid var(--line); }
.texto-palavra { margin-top: 22px; font-family: var(--leitura); font-size: 1.15rem; line-height: 1.65; max-width: 68ch; text-wrap: pretty; }
.texto-palavra p { margin: 0 0 1em; }
.texto-palavra p:last-child { margin-bottom: 0; }
.texto-palavra.pendente p { color: var(--ink-3); }
.estado-transcricao { margin-top: 18px; padding: 14px 16px; border-radius: var(--raio); background: var(--warn-soft); color: var(--warn-ink); display: flex; align-items: center; gap: 12px; }
.estado-transcricao.erro { background: var(--danger-soft); color: var(--danger); }
.segmentos { list-style: none; margin: 12px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--raio); background: var(--surface); max-height: 50dvh; overflow: auto; }
.segmentos li { display: grid; grid-template-columns: 5ch 1fr; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 0.95rem; cursor: pointer; }
.segmentos li:first-child { border-top: 0; }
.segmentos li:hover { background: var(--surface-2); }
.segmentos li.atual { background: var(--accent-soft); }
.segmentos .t { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 0.85rem; padding-top: 2px; }
.acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.painel { margin-top: 18px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--raio); }
.painel h2 { font-size: 1.05rem; }
.painel .campo:first-of-type { margin-top: 10px; }
.notas { margin-top: 18px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--raio-p); color: var(--ink-2); font-size: 0.95rem; white-space: pre-wrap; }
.trechos { margin-top: 8px; }
.aviso-origem { font-size: 0.85rem; color: var(--ink-3); margin-top: 16px; }

/* Nova palavra */
.abas { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: 10px; padding: 3px; margin-top: 12px; }
.abas button { min-height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font-weight: 600; transition: background var(--dur), color var(--dur), box-shadow var(--dur); }
.abas button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px oklch(0 0 0 / 0.08); }
.gravador { margin-top: 20px; padding: 28px 16px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--raio); text-align: center; }
.gravador .relogio { font-size: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; color: var(--ink); min-height: 2.6rem; }
.gravador .dica { color: var(--ink-3); font-size: 0.9rem; margin-top: 4px; min-height: 1.4em; }
.botao-gravar {
  width: 88px; height: 88px; border-radius: 50%; border: 0; margin: 18px auto 0; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); position: relative; transition: background var(--dur), transform var(--dur) var(--ease);
}
.botao-gravar:hover { background: var(--accent-forte); }
.botao-gravar:active { transform: scale(0.96); }
.botao-gravar svg { width: 36px; height: 36px; }
.botao-gravar.gravando { background: var(--danger); color: white; }
.botao-gravar.gravando::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--danger); opacity: 0.6; animation: anel 1.6s var(--ease) infinite; }
@keyframes anel { 0% { transform: scale(0.9); opacity: 0.7; } 100% { transform: scale(1.25); opacity: 0; } }
.previa { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.previa audio { width: 100%; }
.anexo { margin-top: 20px; }
.anexo-area { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 16px; border: 1px dashed var(--line-forte); border-radius: var(--raio); background: var(--surface); color: var(--ink-2); text-align: center; cursor: pointer; }
.anexo-area:hover { border-color: var(--accent); }
.anexo-area svg { width: 28px; height: 28px; color: var(--ink-3); }
.anexo-nome { font-weight: 600; color: var(--ink); word-break: break-all; }
.barra-fixa { position: sticky; bottom: calc(72px + var(--sb-baixo)); margin: 24px -16px 0; padding: 12px 16px; background: color-mix(in oklch, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); z-index: 2; }
.barra-fixa .btn { width: 100%; min-height: 50px; font-size: 1.05rem; }

/* Entrar */
.entrar { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.entrar-caixa { width: 100%; max-width: 24rem; }
.entrar .marca-grande { font-family: var(--leitura); font-size: 2.2rem; font-weight: 600; }
.entrar .descricao { color: var(--ink-2); margin-top: 6px; max-width: 30ch; }
.entrar form { margin-top: 28px; }
.enviado { margin-top: 28px; padding: 16px; border-radius: var(--raio); background: var(--accent-soft); color: var(--ink); }
.enviado strong { display: block; margin-bottom: 4px; }

/* Rodapé fixo */
.rodape {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-fixo);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 16px calc(8px + var(--sb-baixo));
  background: color-mix(in oklch, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--line);
}
.rodape-item { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; transition: background var(--dur), color var(--dur); }
.rodape-item:hover { background: var(--surface-2); color: var(--ink); }
.rodape-item.ativo { color: var(--ink); background: var(--surface-2); }
.rodape-nova { background: var(--accent); color: var(--accent-ink); }
.rodape-nova:hover, .rodape-nova.ativo { background: var(--accent-forte); color: var(--accent-ink); }
@media (min-width: 720px) {
  .rodape { left: 50%; right: auto; transform: translateX(-50%); width: 44rem; max-width: 100%; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; }
}

/* Folha (diálogo) */
.folha { border: 0; padding: 0; background: transparent; max-width: none; width: 100%; max-height: 100dvh; margin: 0; }
.folha::backdrop { background: oklch(0 0 0 / 0.4); backdrop-filter: blur(2px); }
.folha[open] { position: fixed; inset: auto 0 0 0; }
.folha-corpo { background: var(--surface); color: var(--ink); border-radius: 18px 18px 0 0; padding: 20px 20px calc(20px + var(--sb-baixo)); max-width: 44rem; margin: 0 auto; box-shadow: var(--sombra); animation: sobe 260ms var(--ease); }
@keyframes sobe { from { transform: translateY(24px); opacity: 0; } }
.folha-titulo { font-size: 1.15rem; margin-bottom: 12px; }
.folha-linha { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.folha-linha .rotulo { font-weight: 500; }
.aviso-caixa { margin-top: 14px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--raio-p); font-size: 0.95rem; color: var(--ink-2); }
.aviso-caixa code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; color: var(--ink); user-select: all; }
.folha-botoes { display: flex; gap: 8px; margin-top: 16px; }
.folha-botoes .btn { flex: 1; }
@media (min-width: 720px) {
  .folha[open] { inset: 0; display: grid; place-items: center; }
  .folha-corpo { border-radius: 16px; width: 28rem; animation: aparece 200ms var(--ease); }
  @keyframes aparece { from { transform: scale(0.98); opacity: 0; } }
}

/* Toasts */
.toasts { position: fixed; left: 16px; right: 16px; bottom: calc(84px + var(--sb-baixo)); z-index: var(--z-toast); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 10px; box-shadow: var(--sombra); max-width: 40rem; font-weight: 500; animation: sobe 220ms var(--ease); }
.toast.erro { background: var(--danger); color: white; }

/* Página entrando (troca de rota) */
.pagina { animation: surge 200ms var(--ease); }
@keyframes surge { from { opacity: 0; transform: translateY(4px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .pilula.pendente::before { animation: none; opacity: 1; }
}

/* Lista: cabeçalho fixo, lidas, favoritas, anotação */
.cabecalho-lista { position: sticky; top: calc(61px + var(--sb-topo)); z-index: 3; background: var(--bg); padding-bottom: 6px; margin-top: -4px; }
.filtros { flex-wrap: wrap; }
.filtros .chip-estado { min-height: 40px; }
.filtros .seletor { min-width: 7.5rem; flex: 0 1 auto; }
.bolinha { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.chip[aria-pressed="true"] .bolinha { background: var(--accent-ink); }
.estrela { width: 1em; height: 1em; fill: none; stroke: currentColor; }
.chip[aria-pressed="true"] .estrela, .item.favorita .estrela, .btn-estrela[aria-pressed="true"] .estrela { fill: currentColor; }
.item.favorita .estrela { color: var(--warn-ink); }
.item-meta .bolinha, .item-meta .estrela { align-self: center; }
.item.lida .item-titulo { color: var(--ink-2); font-weight: 400; }
.item.nova .item-titulo { font-weight: 600; }
.item-anotacao { grid-column: 1 / 2; color: var(--ink-3); font-size: 0.92rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item a { grid-template-rows: auto auto auto; }
.item-titulo { grid-column: 1; grid-row: 2; }
.item-anotacao { grid-row: 3; }
.item-lado { grid-column: 2; grid-row: 2 / span 2; justify-self: end; }
.titulo-com-estrela { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.btn-estrela { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-forte); background: var(--surface); color: var(--ink-3); display: grid; place-items: center; font-size: 1.3rem; transition: color var(--dur), background var(--dur), transform var(--dur) var(--ease); }
.btn-estrela:hover { background: var(--surface-2); color: var(--ink); }
.btn-estrela[aria-pressed="true"] { color: var(--warn-ink); border-color: color-mix(in oklch, var(--warn-ink) 40%, transparent); background: var(--warn-soft); }
.btn-estrela:active { transform: scale(0.92); }
@media (min-width: 720px) { .cabecalho-lista { top: calc(61px + var(--sb-topo)); } }
