/* Trabalhos: lista, formulário, trabalho pronto, slides e modo apresentar */
.trab-opcao .acao-icone svg { width: 22px; height: 22px; }

.trab-form { display: flex; flex-direction: column; gap: 14px; }
.trab-form .rotulo { margin: 0; }
.trab-form .dica { margin: -6px 0 0; }
.trab-form .trab-aviso { margin: 0; text-align: center; }
.trab-form input[type="range"] { width: 100%; accent-color: var(--acento); }
.trab-form input[type="number"] { width: 100%; }
.trab-linha2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
@media (max-width: 520px) { .trab-linha2 { grid-template-columns: 1fr; } }

.trab-check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--linha); border-radius: 14px; background: var(--papel); cursor: pointer; }
.trab-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--acento); flex: none; }
.trab-check span { display: flex; flex-direction: column; gap: 3px; }
.trab-check small { color: var(--tinta-3); line-height: 1.4; }

.trab-capa { border: 1px solid var(--linha); border-radius: 14px; padding: 4px 14px; }
.trab-capa[open] { padding-bottom: 14px; }
.trab-capa summary { cursor: pointer; padding: 10px 0; font-weight: 700; font-size: .9rem; }
.trab-capa .campo + .campo, .trab-capa .campo + .trab-linha2 { margin-top: 10px; }

.trab-temas { display: flex; gap: 12px; flex-wrap: wrap; }
.trab-tema { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.trab-tema input { position: absolute; opacity: 0; pointer-events: none; }
.trab-tema-amostra { position: relative; display: grid; place-items: center; width: 96px; height: 54px; border-radius: 10px; background: var(--f); color: var(--t); border: 2px solid var(--linha); overflow: hidden; transition: border-color .15s, transform .15s; }
.trab-tema-amostra b { font-family: var(--titulo); font-size: 1.05rem; }
.trab-tema-amostra i { position: absolute; left: 10px; bottom: 9px; width: 26px; height: 4px; border-radius: 4px; background: var(--a); }
.trab-tema input:checked + .trab-tema-amostra { border-color: var(--acento); transform: translateY(-2px); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 25%, transparent); }
.trab-tema input:focus-visible + .trab-tema-amostra { outline: 2px solid var(--azul); outline-offset: 2px; }
.trab-tema small { font-size: .74rem; color: var(--tinta-2); }

.trab-gerando { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 30px 20px; }
.trab-gerando h2 { margin: 6px 0 4px; }
.trab-passos { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.trab-passos li { position: relative; padding-left: 28px; color: var(--tinta-3); font-size: .92rem; }
.trab-passos li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--linha-forte); }
.trab-passos li.feito { color: var(--tinta-2); }
.trab-passos li.feito::before { background: var(--acento); border-color: var(--acento); }
.trab-passos li.atual { color: var(--tinta); font-weight: 700; }
.trab-passos li.atual::before { border-color: var(--acento); animation: trab-pulso 1s ease-in-out infinite alternate; }
@keyframes trab-pulso { to { box-shadow: 0 0 0 5px color-mix(in srgb, var(--acento) 25%, transparent); } }

.trab-topo { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.trab-topo .rotulo, .trab-topo .dica { margin: 0; }
.trab-titulo { margin: 0; font-size: 1.35rem; line-height: 1.3; }
.trab-topo .botoes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.trab-topo .botoes button { display: inline-flex; align-items: center; gap: 8px; }
.trab-topo .botoes svg { width: 18px; height: 18px; }
.trab-alerta { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--laranja-fundo); color: var(--tinta); font-size: .86rem; }
.trab-temas-item .trab-tema-amostra { width: 80px; height: 45px; }

.trab-fontes { margin-bottom: 12px; padding: 14px 18px; }
.trab-fontes summary { cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.trab-fontes summary small { color: var(--tinta-3); font-size: .8rem; }
.trab-fontes ol { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.trab-fontes a { color: var(--azul); word-break: break-word; }
.trab-fontes li small { display: block; color: var(--tinta-3); }

.trab-texto { font-size: .95rem; line-height: 1.7; color: var(--tinta-2); }
.trab-texto h2 { font-size: 1.05rem; text-transform: uppercase; color: var(--tinta); margin: 22px 0 8px; }
.trab-texto h3 { font-size: 1rem; color: var(--tinta); margin: 18px 0 6px; }
.trab-texto h2:first-child, .trab-texto h3:first-child { margin-top: 0; }
.trab-texto p { margin: 0 0 10px; text-align: justify; }
.trab-texto blockquote { margin: 8px 0 12px 12%; font-size: .88rem; }
.trab-ref { text-align: left !important; font-size: .86rem; }

/* ---------- slides (16:9, tudo em cqw: escala com a largura) ---------- */
.trab-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.trab-mini { padding: 0; border: 1px solid var(--linha); border-radius: 10px; overflow: hidden; background: none; cursor: pointer; box-shadow: var(--sombra); transition: transform .15s, border-color .15s; }
.trab-mini:hover { transform: translateY(-2px); border-color: var(--acento); }

.tslide { position: relative; container-type: inline-size; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; background: var(--f); color: var(--x); font-family: Calibri, Carlito, "Segoe UI", system-ui, sans-serif; text-align: left; line-height: 1.15; }
.tslide > * { position: absolute; }
.ts-titulo { left: 4.5cqw; top: 6cqw; right: 4.5cqw; height: 7.1cqw; display: flex; align-items: center; gap: 2.2cqw; color: var(--t); font-weight: 700; }
.ts-titulo i { flex: none; width: .9cqw; height: 5.6cqw; background: var(--a); }
.ts-topicos { left: 7.1cqw; top: 17.5cqw; right: 7.1cqw; bottom: 8cqw; margin: 0; padding: 0 0 0 1.6em; list-style: none; }
.ts-topicos li { position: relative; margin-bottom: .7em; }
.ts-topicos li::before { content: ""; position: absolute; left: -1.15em; top: .38em; width: .42em; height: .42em; border-radius: 50%; background: var(--a); }
.ts-solto { left: 7.1cqw; top: 17.5cqw; right: 7.1cqw; font-size: 2.5cqw; }
.ts-rodape { left: 4.5cqw; right: 4.5cqw; bottom: 2.6cqw; display: flex; justify-content: space-between; gap: 2cqw; font-size: 1.1cqw; color: var(--s); }
.ts-rodape span:first-child { font-style: italic; }

.ts-capa { inset: 0; }
.ts-capa > * { position: absolute; }
.ts-bola1 { right: -14cqw; top: -13.5cqw; width: 48cqw; height: 48cqw; border-radius: 50%; background: color-mix(in srgb, var(--a) 18%, transparent); }
.ts-bola2 { right: -12cqw; top: 29cqw; width: 31.5cqw; height: 31.5cqw; border-radius: 50%; background: color-mix(in srgb, var(--a2) 15%, transparent); }
.ts-barra { left: 6cqw; top: 15.4cqw; width: 10.5cqw; height: .9cqw; background: var(--a); }
.ts-capa h1 { left: 6cqw; top: 17.3cqw; right: 25.5cqw; margin: 0; color: var(--t); font-weight: 700; line-height: 1.08; }
.ts-sub { left: 6cqw; top: 33cqw; right: 25.5cqw; margin: 0; font-size: 2.08cqw; color: var(--x); }
.ts-info { left: 6cqw; right: 25.5cqw; bottom: 4.4cqw; color: var(--s); font-size: 1.35cqw; }
.ts-info p { margin: .25em 0 0; }
.ts-info .ts-forte { font-weight: 700; font-size: 1.56cqw; }

.ts-tipo-secao { background: var(--a); }
.ts-secao { left: 6.75cqw; right: 6.75cqw; top: 17cqw; color: var(--ta); }
.ts-secao h1 { margin: 0 0 .4em; font-weight: 700; color: var(--ta); }
.ts-secao p { margin: 0; font-size: 2.08cqw; }
.ts-tipo-secao .ts-rodape { color: var(--ta); }

.ts-destaque { left: 6.75cqw; right: 6.75cqw; top: 15cqw; bottom: 8cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2cqw; }
.ts-destaque b { color: var(--a); line-height: 1.05; }
.ts-destaque p { margin: 0; max-width: 80%; }

.ts-citacao { left: 5cqw; right: 12cqw; top: 3cqw; bottom: 8cqw; }
.ts-aspas { position: absolute; left: 0; top: 0; font-family: Georgia, serif; font-size: 16.7cqw; line-height: 1; color: var(--a); }
.ts-citacao blockquote { position: absolute; left: 7cqw; right: 0; top: 13cqw; margin: 0; font-family: Georgia, serif; font-style: italic; color: var(--t); line-height: 1.3; }
.ts-citacao p { position: absolute; left: 7cqw; bottom: 2cqw; margin: 0; font-size: 1.9cqw; color: var(--s); }

.ts-comparacao { left: 7.1cqw; right: 7.1cqw; top: 13.1cqw; bottom: 6.4cqw; display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; }
.ts-lado { position: relative; border-radius: .9cqw; background: var(--c); border: 1px solid var(--lc); border-top: .7cqw solid var(--a); padding: 1.5cqw 2.2cqw; overflow: hidden; }
.ts-lado2 { border-top-color: var(--a2); }
.ts-lado h3 { margin: 0 0 1.2cqw; font-size: 2.3cqw; color: var(--t); }
.ts-lado .ts-topicos { position: static; padding-left: 1.4em; }

.ts-etapas { left: 7.1cqw; right: 7.1cqw; top: 14.6cqw; bottom: 6cqw; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.ts-etapas::before { content: ""; position: absolute; left: calc(100% / var(--n) / 2); right: calc(100% / var(--n) / 2); top: 3cqw; height: 2px; background: var(--lc); }
.ts-etapas li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2cqw; padding: 0 .9cqw; text-align: center; }
.ts-etapas b { display: grid; place-items: center; width: 6cqw; height: 6cqw; border-radius: 50%; background: var(--a); color: var(--ta); font-size: 2.3cqw; box-shadow: 0 0 0 .4cqw var(--f); }
.ts-etapas li:nth-child(even) b { background: var(--a2); }

.ts-refs { left: 7.1cqw; right: 7.1cqw; top: 15cqw; bottom: 6cqw; font-size: 1.25cqw; }
.ts-refs p { margin: 0 0 .9em; word-break: break-word; }

.ts-fim { inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ts-fim h1 { margin: 0; font-size: 6.25cqw; color: var(--t); }
.ts-perg { margin: 1cqw 0 0; font-size: 2.7cqw; color: var(--a); }
.ts-aut { margin: 3cqw 0 0; font-size: 1.67cqw; color: var(--s); }
.ts-bola3 { left: -11cqw; top: 27cqw; width: 41cqw; height: 41cqw; border-radius: 50%; background: color-mix(in srgb, var(--a) 15%, transparent); }

/* ---------- modo apresentar ---------- */
.trab-palco { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px; background: #05080f; }
.trab-palco-slide { width: min(100%, calc((100dvh - 80px) * 16 / 9)); cursor: pointer; user-select: none; }
.trab-palco-slide .tslide { border-radius: 4px; box-shadow: 0 10px 40px rgb(0 0 0 / .5); }
.trab-palco-notas { width: min(100%, 900px); max-height: 22dvh; overflow-y: auto; padding: 12px 16px; border-radius: 12px; background: #141a26; color: #d6dcea; font-size: .95rem; line-height: 1.55; }
.trab-palco-barra { display: flex; align-items: center; gap: 8px; color: #aeb7cc; font-size: .9rem; }
.trab-palco-barra button { border: 1px solid #2a3245; background: #141a26; color: #e6ebf5; border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.trab-palco-barra button:hover { background: #1d2536; }
.trab-palco-barra button[data-a="ant"], .trab-palco-barra button[data-a="prox"] { width: 38px; padding: 7px 0; font-size: 1.2rem; line-height: 1; }
.trab-palco-num { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.trab-palco:fullscreen .trab-palco-barra { opacity: .25; transition: opacity .2s; }
.trab-palco:fullscreen .trab-palco-barra:hover { opacity: 1; }
