/* Página de treino dos workshops da MJ. Só clara, no sistema do site novo: branco, linhas de 1 px, botões a preto,
   Geist de peso médio e o cobalto só de apontamento. Não segue o modo escuro do aparelho, para a sala inteira ver o mesmo.
   Feita primeiro para o telemóvel: é aí que a maior parte da sala vai trabalhar. */

@font-face { font-family: "Geist"; src: url(/fonts/geist-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url(/fonts/geist-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/geist-mono-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #ffffff;
  --bg-2: #f7f7f8;
  --bg-3: #f2f2f3;
  --ink-4: #767676;
  --ink: #0a0a0a;
  --ink-2: #525252;
  --ink-3: #666666;
  --line: #e5e5e5;
  --accent: #2563eb;
  --accent-ink: #ffffff;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-line: rgba(37, 99, 235, 0.3);
  --erro: #b42318;
  --vermelho: #dc2626;
  --sombra: 0 16px 40px rgba(10, 10, 10, 0.08), 0 1px 3px rgba(10, 10, 10, 0.06);
  --mono: "Geist Mono", ui-monospace, monospace;
  --raio: 12px;
  --foco: 0 0 0 3px rgba(10, 10, 10, 0.06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-pequeno { width: 16px; height: 16px; }

.rotulo {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sub { color: var(--ink-2); }

/* resposta ao toque: imediata, pequena, e sem animação para quem a pediu desligada */
.botao, .bt-icone, .bt-enviar, .bt-texto, .lista-dep button, .sugestao, .menu button, .bt-dep, .chip-anexo button, .acao-msg {
  transition: transform 120ms ease, background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}
.botao:active, .bt-icone:active, .bt-enviar:active, .lista-dep button:active, .sugestao:active, .menu button:active, .acao-msg:active { transform: scale(0.97); }

/* ── ecrãs ─────────────────────────────────────────── */

.ecra { min-height: 100dvh; }
.ecra-centro { display: grid; place-items: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); }
.entrar { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; }
.entrar .marca { margin-bottom: 20px; }
.entrar h1 { font-size: 30px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 500; }
.entrar form { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.campo input {
  height: 48px; padding: 0 14px; font-size: 17px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.campo input:hover { border-color: #d4d4d4; }
.campo input:focus { outline: none; border-color: var(--ink); box-shadow: var(--foco); }
.campo input[name="codigo"] { font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.erro { color: var(--erro); font-size: 14px; }
.nota { font-size: 13px; color: var(--ink-4); margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.botao { height: 48px; border-radius: 8px; font-weight: 500; font-size: 16px; border: 1px solid transparent; }
.botao-primario { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.botao-primario:hover { opacity: 0.85; }
.botao-primario:disabled { opacity: 0.45; }
.botao-secundario { width: 100%; margin-top: 16px; border-color: var(--line); color: var(--ink); background: var(--bg); }
.botao-secundario:hover { background: var(--bg-2); border-color: var(--ink-4); }
.msg-eu .acoes-msg { margin: 0 -8px 0 0; }

.ecra-lista { max-width: 560px; margin: 0 auto; padding: 32px 16px calc(32px + env(safe-area-inset-bottom)); }
.cabeca { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.cabeca h1 { font-size: 30px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 500; }

.lista-dep { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lista-dep li { border-bottom: 1px solid var(--line); }
.lista-dep button {
  width: 100%; min-height: 56px; padding: 12px 4px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-align: left; font-size: 17px; font-weight: 500;
}
@media (hover: hover) { .lista-dep button:hover { background: var(--bg-2); } }
.lista-dep button[aria-current="true"] { color: var(--accent); }
.lista-dep .ico { color: var(--ink-3); }
.lista-dep button[aria-current="true"] .ico { color: var(--accent); }

/* ── conversa ─────────────────────────────────────── */

.conversa { height: 100dvh; min-height: 0; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); }
.barra {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px 16px;
  border-bottom: 1px solid var(--line); background: var(--bg);
}
.bt-dep { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-height: 44px; justify-content: center; text-align: left; min-width: 0; flex: 0 1 auto; }
.bt-dep .dep-atual { max-width: 100%; white-space: nowrap; }
.dep-atual span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bt-dep .rotulo { font-size: 11px; }
.dep-atual { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.barra-acoes { display: flex; align-items: center; gap: 4px; }
.bt-icone { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; color: var(--ink-3); }
.bt-icone:hover { background: var(--bg-2); color: var(--ink); }
.bt-texto { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.bt-texto:hover { background: var(--bg-2); border-color: var(--ink-4); }

.mensagens { overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 20px; }
.mensagens > * { width: 100%; max-width: 760px; margin: 0 auto; }

.vazio { margin: auto; padding: 24px 0; display: flex; flex-direction: column; gap: 10px; }
.vazio h2 { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.sugestoes { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sugestao {
  text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.4; background: var(--bg);
}
@media (hover: hover) { .sugestao:hover { border-color: var(--ink-4); color: var(--ink); background: var(--bg-2); } }

.msg-eu { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.bolha {
  max-width: 85%; padding: 10px 16px; border-radius: 18px;
  background: var(--bg-3); white-space: pre-wrap; overflow-wrap: anywhere;
}
.anexos-msg { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 85%; }
.anexo-msg { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: var(--ink-2); max-width: 220px; }
.anexo-msg img { width: 36px; height: 36px; object-fit: cover; border-radius: 7px; }
.anexo-msg .ico { margin-left: 6px; }
.anexo-msg span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.msg-ia { display: flex; flex-direction: column; gap: 8px; }
.acoes-msg { display: flex; gap: 4px; margin-left: -8px; }
.acao-msg { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border-radius: 8px; font-size: 13px; color: var(--ink-3); }
.acao-msg:hover { background: var(--bg-2); color: var(--ink); }
.aviso-msg { font-size: 14px; color: var(--ink-3); }
.erro-msg { font-size: 14px; color: var(--erro); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.a-pensar { display: inline-flex; gap: 5px; padding: 10px 0; }
.a-pensar i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: pulso 1.2s ease-in-out infinite; }
.a-pensar i:nth-child(2) { animation-delay: 0.15s; }
.a-pensar i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulso { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* texto das respostas */
.md { overflow-wrap: anywhere; }
.md > * + * { margin-top: 12px; }
.md h1, .md h2, .md h3 { font-size: 17px; font-weight: 600; line-height: 1.3; margin-top: 20px; }
.md ul, .md ol { padding-left: 22px; margin: 0; }
.md li + li { margin-top: 4px; }
.md code { font-family: var(--mono); font-size: 0.88em; background: var(--bg-2); padding: 1px 5px; border-radius: 5px; }
.md pre { background: var(--bg-2); padding: 12px 14px; border-radius: 10px; overflow-x: auto; }
.md pre code { background: none; padding: 0; }
.md hr { border: 0; border-top: 1px solid var(--line); }
.md blockquote { margin: 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--ink-2); }
.tabela { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tabela-rolar { overflow-x: auto; }
/* a tabela desliza para o lado em vez de partir palavras e números ao meio */
.tabela table { border-collapse: collapse; width: max-content; min-width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.tabela th, .tabela td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: normal; word-break: normal; max-width: 240px; }
.tabela td { min-width: 96px; }
.tabela .num { white-space: nowrap; text-align: right; min-width: 0; }
.tabela th { background: var(--bg-2); font-weight: 500; white-space: nowrap; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela-rodape { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); padding: 2px 4px; background: var(--bg-2); }

/* ── compositor ───────────────────────────────────── */

.compositor {
  position: relative; padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
}
.compositor > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.caixa {
  display: flex; align-items: flex-end; gap: 4px; padding: 4px;
  border: 1px solid var(--line); border-radius: 24px; background: var(--bg);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04); transition: border-color 150ms ease, box-shadow 150ms ease;
}
.caixa:focus-within { border-color: #c4c4c4; box-shadow: var(--foco); }
.caixa textarea {
  flex: 1; min-height: 44px; max-height: 40dvh; padding: 10px 4px; resize: none; border: 0; outline: none; background: transparent;
  font-size: 16px; line-height: 1.5;
}
.bt-anexar { border-radius: 50%; }
.bt-enviar { width: 40px; height: 40px; margin: 2px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); }
.bt-enviar:disabled { opacity: 1; background: var(--bg-3); color: var(--ink-4); }
.bt-enviar .ico-parar { display: none; fill: currentColor; stroke: none; }
.compositor.a-escrever .bt-enviar .ico-enviar { display: none; }
.compositor.a-escrever .bt-enviar .ico-parar { display: block; }

.anexos { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; }
.chip-anexo { position: relative; flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 30px 4px 4px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--ink-2); max-width: 220px; }
.chip-anexo img, .chip-anexo .doc { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.chip-anexo .doc { display: grid; place-items: center; background: var(--bg-2); }
.chip-anexo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-anexo button { position: absolute; top: 2px; right: 2px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-3); }
.chip-anexo button .ico { width: 14px; height: 14px; }
.chip-anexo.a-preparar { opacity: 0.6; }
.aviso-anexo { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.4; color: var(--ink-2); padding: 0 4px 8px; }
.aviso-anexo .ponto { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--vermelho); flex: none; }

/* o menu nasce do clipe e volta para ele */
.menu {
  position: absolute; left: 12px; bottom: calc(100% - 4px); min-width: 230px; padding: 6px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sombra);
  transform-origin: bottom left; transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 120ms ease;
}
@starting-style { .menu { transform: scale(0.92); opacity: 0; } }
.menu button { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 9px; text-align: left; font-size: 15px; }
.menu button:hover { background: var(--bg-2); }
@media (min-width: 800px) { .menu { left: calc(50% - 380px + 12px); } }

/* ── folhas (sobem de baixo no telemóvel, aparecem ao centro no computador) ── */

.folha {
  width: 100%; max-width: 560px; max-height: 85dvh; margin: auto auto 0; padding: 0; border: 0;
  border-radius: 20px 20px 0 0; background: var(--bg); color: var(--ink); box-shadow: var(--sombra);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), overlay 260ms allow-discrete, display 260ms allow-discrete;
  transform: translateY(100%);
}
.folha[open] { transform: translateY(0); }
@starting-style { .folha[open] { transform: translateY(100%); } }
.folha::backdrop { background: rgba(0, 0, 0, 0); transition: background 260ms ease, overlay 260ms allow-discrete, display 260ms allow-discrete; }
.folha[open]::backdrop { background: rgba(0, 0, 0, 0.35); }
@starting-style { .folha[open]::backdrop { background: rgba(0, 0, 0, 0); } }
@media (min-width: 800px) {
  .folha { margin: auto; border-radius: 20px; transform: translateY(16px); opacity: 0; transition-property: transform, opacity, overlay, display; }
  .folha[open] { transform: none; opacity: 1; }
  @starting-style { .folha[open] { transform: translateY(16px); opacity: 0; } }
}
.folha-corpo { padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; max-height: 85dvh; }
.folha-corpo::before { content: ""; display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 8px; }
/* no computador a folha aparece ao centro e não se arrasta: sem pega */
@media (min-width: 800px) { .folha-corpo { padding-top: 20px; } .folha-corpo::before { display: none; } }
.folha-topo { display: flex; align-items: center; justify-content: space-between; }
.folha-topo h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.folha .sub { font-size: 14px; margin-bottom: 16px; }
.folha-rodape { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; font-size: 14px; color: var(--ink-3); }
.folha-rodape .bt-texto { color: var(--erro); padding: 0 8px; }

.lista-ex { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: ex; }
.lista-ex li { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px; counter-increment: ex; }
.lista-ex h3 { font-size: 16px; font-weight: 500; display: flex; gap: 10px; }
.lista-ex h3::before { content: counter(ex); font-family: var(--mono); font-weight: 500; color: var(--accent); }
.lista-ex p { font-size: 14px; color: var(--ink-2); }
.lista-ex .docs { display: flex; flex-wrap: wrap; gap: 6px; }
.lista-ex .doc-ex { font-size: 13px; padding: 4px 10px; border-radius: 8px; background: var(--bg-2); color: var(--ink-2); }
.lista-ex .botao { height: 40px; align-self: flex-start; padding: 0 16px; font-size: 14px; }
/* uma lista de exercícios com botões pretos todos iguais pesa: aqui o botão é de contorno */
.lista-ex .botao-primario { background: var(--bg); border-color: var(--line); color: var(--ink); }
.lista-ex .botao-primario:hover { opacity: 1; background: var(--bg-2); border-color: var(--ink-4); }

.sem-js { padding: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
  .a-pensar i { animation: none; opacity: 0.6; }
}

/* ── o assistente a trabalhar: raciocínio e passos ─────────── */

.raciocinio { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.raciocinio > summary {
  list-style: none; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px;
  font-size: 13px; color: var(--ink-3); cursor: pointer; user-select: none;
}
.raciocinio > summary::-webkit-details-marker { display: none; }
.raciocinio > summary .ico { width: 14px; height: 14px; margin-left: auto; transition: transform 160ms ease; }
.raciocinio[open] > summary .ico { transform: rotate(90deg); }
.raciocinio:not(.fechado) .r-estado { color: var(--ink-2); background: linear-gradient(90deg, var(--ink-3) 0%, var(--ink) 50%, var(--ink-3) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brilho 1.6s linear infinite; }
@keyframes brilho { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.r-tempo { font-family: var(--mono); font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.r-linha {
  display: flex; flex-direction: column; gap: 10px; padding: 2px 12px 12px; border-top: 1px solid var(--line);
  max-height: 38dvh; overflow-y: auto; overscroll-behavior: contain;
}
.raciocinio.fechado .r-linha { max-height: 60dvh; }
.r-pensar { font-size: 13.5px; line-height: 1.55; color: var(--ink-3); white-space: pre-wrap; padding-top: 10px; }
.r-passo { display: grid; grid-template-columns: 16px 1fr; column-gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink); padding-top: 8px; }
.r-marca { width: 8px; height: 8px; border-radius: 50%; justify-self: center; background: var(--ink-4); }
.r-passo.a-correr .r-marca { background: var(--accent); animation: pulso-marca 1s ease-in-out infinite; }
.r-passo.feito .r-marca { background: #16a34a; }
.r-passo.falhou .r-marca { background: #d97706; }
@keyframes pulso-marca { 50% { opacity: 0.35; } }
.r-codigo { grid-column: 2; margin-top: 2px; }
.r-codigo > summary { font-size: 12px; color: var(--ink-4); cursor: pointer; width: max-content; }
.r-codigo pre { margin: 6px 0 0; padding: 10px 12px; background: var(--bg-2); border-radius: 8px; overflow-x: auto; max-height: 240px; font-size: 12px; line-height: 1.5; }
.r-codigo code { font-family: var(--mono); white-space: pre; }

/* ficheiros que o assistente criou */
.saidas { display: flex; flex-direction: column; gap: 8px; }
.saida {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 420px; padding: 10px 12px; text-align: left;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); transition: background-color 150ms ease, border-color 150ms ease;
}
@media (hover: hover) { .saida:hover { background: var(--bg-2); border-color: var(--ink-4); } }
.saida:active { transform: scale(0.99); }
.saida-ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: #ecfdf3; color: #15803d; flex: none; }
.saida-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.saida-nome { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saida-info { font-family: var(--mono); font-size: 11px; color: var(--ink-4); letter-spacing: 0.04em; }
.saida-bt { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink); flex: none; }

@media (prefers-reduced-motion: reduce) {
  .raciocinio:not(.fechado) .r-estado { animation: none; color: var(--ink-2); background: none; }
  .r-passo.a-correr .r-marca { animation: none; }
}
/* um pedaço do raciocínio à espera da tradução: uma linha a brilhar no lugar dele */
.r-a-traduzir { display: inline-block; width: 6em; height: 0.8em; border-radius: 4px; vertical-align: middle; background: linear-gradient(90deg, var(--bg-3), var(--line), var(--bg-3)); background-size: 200% 100%; animation: brilho 1.2s linear infinite; }
@media (prefers-reduced-motion: reduce) { .r-a-traduzir { animation: none; } }

/* fontes da pesquisa na web */
.fontes { padding-top: 2px; }
.fontes > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; cursor: pointer; user-select: none; }
.fontes > summary::-webkit-details-marker { display: none; }
.fontes > summary .ico { width: 14px; height: 14px; color: var(--ink-4); transition: transform 160ms ease; }
.fontes[open] > summary .ico { transform: rotate(90deg); }
@media (hover: hover) { .fontes > summary:hover .rotulo { color: var(--ink); } }
.fontes ol { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.fontes li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; counter-increment: fonte; }
.fontes li::before { content: counter(fonte); font-family: var(--mono); font-size: 11px; color: var(--ink-4); width: 14px; flex: none; }
.fontes ol { counter-reset: fonte; }
.fontes a { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .fontes a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.fontes li span { font-family: var(--mono); font-size: 11px; color: var(--ink-4); flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
