/* Ajustes do site sobre o CSS portado do app "Modèles TCF" (css/producao-app.css, gerado):
   barra do app abaixo da navbar do site, hub de escolhas, "Accueil" logo abaixo, "À la une"
   redesenhado e os blocos novos (envio ao Sistema de Correção, transcrição, ao vivo). */

/* ---------- barra do app: logo abaixo da navbar do site ----------
   A navbar do site é que fica fixa; --topo-site (altura dela, medida em js) substitui os
   deslocamentos do script, que contavam com a própria barra de ~58px. */
.fnm-app .lateral { top: calc(var(--topo-site, 70px) + 12px); }
.fnm-app .modele-raiz.com-dictee .painel-dictee { top: calc(var(--topo-site, 70px) + 10px); max-height: calc(100vh - var(--topo-site, 70px) - 20px); }
.fnm-app .modele-raiz.com-reescrita .painel-reescrita { top: calc(var(--topo-site, 70px) + 10px); max-height: calc(100vh - var(--topo-site, 70px) - 20px); }
.fnm-app .ep-barra, .fnm-app .avisos-globais, .fnm-app .tt-barra { top: calc(var(--topo-site, 70px) + 8px); }
.fnm-app .fnm-barra { position: relative; top: auto; z-index: 30; margin: 14px auto 0; max-width: 1180px; border-radius: 18px; box-shadow: var(--sombra); border: 1px solid rgba(var(--branco-rgb), .7); }
.fnm-app .barra-nav { display: flex; flex-wrap: wrap; gap: 2px; justify-content: flex-end; }
.fnm-app .barra-nav a.sair, .fnm-app .barra-nav button.sair { padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--tinta-suave); text-decoration: none; background: none; border: 0; }
.fnm-app .barra-nav a.sair:hover { background: rgba(var(--branco-rgb), .7); }
@media (max-width: 960px) { .fnm-app .fnm-barra { position: static; flex-direction: column; align-items: flex-start; } .fnm-app .barra-nav { justify-content: flex-start; } }

/* ---------- hub de escolhas ---------- */
.fnm-app .hub-escolhas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 30px; }
@media (max-width: 900px) { .fnm-app .hub-escolhas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fnm-app .hub-escolhas { grid-template-columns: 1fr; } }
.fnm-app .hub-escolha {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; min-height: 188px;
  padding: 22px 22px 18px; border-radius: 24px; border: 1px solid rgba(var(--branco-rgb), .85); background: var(--vidro-forte);
  box-shadow: var(--sombra); color: var(--tinta); overflow: hidden; transition: transform .18s, box-shadow .18s;
}
.fnm-app .hub-escolha::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--cor); }
.fnm-app .hub-escolha::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--cor); opacity: .14; transition: transform .25s; }
.fnm-app .hub-escolha:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -26px rgba(28,43,58,.7); }
.fnm-app .hub-escolha:hover::after { transform: scale(1.25); }
.fnm-app .he-ico { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--cor); color: #1C2B3A; margin-bottom: 6px; }
.fnm-app .he-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fnm-app .hub-escolha b { font-family: var(--serifa); font-size: 21px; color: var(--marinho); }
.fnm-app .hub-escolha small { font-size: 13.5px; color: var(--tinta-suave); line-height: 1.45; }
.fnm-app .hub-escolha em { margin-top: auto; font-style: normal; font-weight: 700; font-size: 13px; color: var(--marinho); position: relative; z-index: 1; }

/* "Mon espace" (aluno) / "Espace professeur" (equipe): card largo, na última linha do hub. */
.fnm-app .hub-escolha-espace { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 16px; align-items: center; }
.fnm-app .hub-escolha-espace::before { background: linear-gradient(90deg, #94C4EC, #E4C043, #D51E28); }
.fnm-app .hub-escolha-espace .he-ico { grid-row: 1 / 3; margin: 0; background: #1C2B3A; color: #E4C043; }
.fnm-app .hub-escolha-espace small { grid-column: 2; }
.fnm-app .hub-escolha-espace em { grid-column: 3; grid-row: 1 / 3; margin: 0; }
:root[data-theme="dark"] .fnm-app .hub-escolha-espace .he-ico { background: #E4C043; color: #0b0c0e; }
@media (max-width: 560px) { .fnm-app .hub-escolha-espace { grid-template-columns: auto 1fr; } .fnm-app .hub-escolha-espace em { grid-column: 2; grid-row: auto; } }

/* ---------- Accueil logo abaixo do hub ---------- */
.fnm-app .acc-secao { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; }
.fnm-app .acc-secao::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--linha), transparent); }
.fnm-app .acc-duas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fnm-app .acc-duas > div:empty { display: none; }
.fnm-app .acc-duas:has(> div:empty) { grid-template-columns: 1fr; }
@media (max-width: 760px) { .fnm-app .acc-duas { grid-template-columns: 1fr; } }

/* ---------- À la une (redesenhado) ---------- */
.fnm-app .alu2 { padding: 0; overflow: hidden; border-top: 0; background: var(--papel); }
.fnm-app .alu2 .alu-cab { padding: 22px 26px 16px; margin: 0; background: linear-gradient(120deg, #1C2B3A 0%, #2d4660 60%, #3b5a78 100%); border: 0; color: #fff; }
.fnm-app .alu2 .alu-cab h2 { color: #fff; }
.fnm-app .alu2 .alu-cab p { color: #c8d6e3; max-width: 520px; }
.fnm-app .alu2 .tm-selo { background: var(--dourado); color: #1C2B3A; }
.fnm-app .alu2 .alu-destaque { margin: 18px 22px 14px; border-radius: 20px; box-shadow: 0 18px 40px -28px rgba(0,0,0,.7); }
.fnm-app .alu2 .alu-mini { margin: 0 22px 16px; }
.fnm-app .alu2 .alu-mini article { display: flex; gap: 10px; align-items: center; background: rgba(var(--branco-rgb), .6); }
.fnm-app .alu-mini-img { position: relative; width: 64px; height: 48px; flex: none; border-radius: 10px; overflow: hidden; }
.fnm-app .alu-mini-img img, .fnm-app .alu-mini-img svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fnm-app .alu2 .alu-sujets { padding: 4px 22px 22px; }
.fnm-app .alu2 .alu-linha h4 { display: flex; align-items: center; gap: 8px; color: var(--marinho); margin-top: 14px; }
.fnm-app .alu2 .alu-linha h4 i { width: 10px; height: 10px; border-radius: 50%; background: #94C4EC; }
.fnm-app .alu2 .alu-linha.ecrit h4 i { background: var(--dourado); }
.fnm-app .alu2 .alu-card { position: relative; background: var(--papel); border: 1px solid var(--linha); border-left: 5px solid var(--cor, var(--dourado)); min-height: 170px; box-shadow: 0 10px 26px -22px rgba(28,43,58,.8); }
.fnm-app .alu2 .alu-card:hover { border-color: var(--cor, var(--dourado)); }
.fnm-app .alu-card-topo { display: flex; align-items: center; gap: 8px; }
.fnm-app .alu-num { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; background: var(--cor, var(--dourado)); color: #1C2B3A; }
.fnm-app .alu-ico { margin-left: auto; font-size: 18px; }
.fnm-app .alu2 .alu-link { color: var(--marinho); font-weight: 700; }

/* ✕ do administrador nos itens do "À la une" */
.fnm-app .alu2 article { position: relative; }
.fnm-app .alu-apagar { position: absolute; top: 8px; right: 8px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--linha); background: var(--papel); color: #D51E28; font-weight: 800; cursor: pointer; opacity: .75; }
.fnm-app .alu-apagar:hover { opacity: 1; background: #D51E28; color: #fff; }
.fnm-app .alu2 .alu-card .alu-apagar { top: 6px; right: 6px; width: 24px; height: 24px; font-size: 12px; }
.fnm-app .alu2 .alu-card:has(.alu-apagar) .alu-ico { margin-right: 26px; }
.fnm-app .alu-restaurar { margin-left: 8px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; border-radius: 999px; padding: 3px 12px; font-size: 12.5px; cursor: pointer; }

/* ---------- épreuve: escolha de quem corrige + envio ao Sistema de Correção ---------- */
.fnm-app .escolha-correcao { border: 1px solid var(--linha); border-radius: 16px; padding: 12px 16px; margin: 12px 0 16px; display: grid; gap: 8px; }
.fnm-app .escolha-correcao legend { font-weight: 800; color: var(--marinho); padding: 0 6px; }
.fnm-app .escolha-correcao label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 8px 10px; border-radius: 12px; }
.fnm-app .escolha-correcao label:has(input:checked) { background: rgba(228,192,67,.18); }
.fnm-app .escolha-correcao span { display: flex; flex-direction: column; }
.fnm-app .escolha-correcao small { color: var(--tinta-suave); }
.fnm-app .envio-sistema { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; padding: 14px 16px; border-radius: 16px; border: 1px dashed var(--dourado-escuro); background: rgba(228,192,67,.08); }
.fnm-app .envio-sistema small { color: var(--tinta-suave); }
.fnm-app .envio-sistema a { color: var(--marinho); font-weight: 700; }

/* ---------- gravação: transcrição ---------- */
.fnm-app .grav-transcricao { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(var(--branco-rgb), .7); border: 1px solid var(--linha); }
.fnm-app .grav-transcricao small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-suave); font-weight: 800; }
.fnm-app .grav-transcricao p { margin: 4px 0 0; font-style: italic; }
.fnm-app .grav-trans-edit { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; font-size: 13px; color: var(--tinta-suave); }
.fnm-app .grav-trans-edit textarea { width: 100%; border-radius: 12px; border: 1px solid var(--linha); padding: 10px 12px; font: inherit; font-size: 14.5px; color: var(--tinta); background: var(--papel); resize: vertical; }
.fnm-app .gl-viva { font-style: italic; color: var(--tinta-suave); margin: 8px 0; }
.fnm-app .gl-item { border: 1px solid var(--linha); border-radius: 14px; padding: 10px 12px; margin-top: 10px; }
.fnm-app .gl-cab { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fnm-app .gl-acoes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- carnet ↔ caderno da plataforma ---------- */
.fnm-app .caderno-ponte { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--tinta); border-left: 5px solid var(--dourado); }
.fnm-app .caderno-ponte .cp-ico svg { width: 28px; height: 28px; }
.fnm-app .caderno-ponte div { display: flex; flex-direction: column; }
.fnm-app .caderno-ponte small { color: var(--tinta-suave); }
.fnm-app .caderno-ponte em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--marinho); }
.fnm-app .aba-esp.link { text-decoration: none; margin-left: auto; }

/* ---------- espace professeur: atalhos e ao vivo ---------- */
.fnm-app .atalhos-equipe { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 16px; }
.fnm-app .atalhos-equipe .chip { text-decoration: none; }
.fnm-app .av-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.fnm-app .av-card { border: 1px solid var(--linha); border-radius: 16px; padding: 14px; background: var(--papel); display: flex; flex-direction: column; gap: 6px; }
.fnm-app .av-cab { display: flex; justify-content: space-between; align-items: center; }
.fnm-app .av-tempo { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 20px; color: var(--marinho); }
.fnm-app .av-tempo.fim { color: #D51E28; }
.fnm-app .av-tache summary { display: flex; justify-content: space-between; cursor: pointer; font-weight: 700; padding: 4px 0; }
.fnm-app .av-tache em { font-style: normal; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: rgba(var(--branco-rgb), .8); border: 1px solid var(--linha); }
.fnm-app .av-tache em.ok { background: #E6F4EC; color: #1f6b4a; border-color: transparent; }
.fnm-app .av-tache em.alto { background: #FBEBE9; color: #9b2c24; border-color: transparent; }
.fnm-app .av-tache .prod-texto { max-height: 220px; overflow: auto; font-size: 13.5px; }
.fnm-app .av-msg { display: flex; gap: 6px; margin-top: 6px; }
.fnm-app .av-msg input { flex: 1; border-radius: 999px; border: 1px solid var(--linha); padding: 7px 12px; background: var(--papel); color: var(--tinta); }

/* ---------- temas do curso (hub da Production écrite) ---------- */
.fnm-app #hub-curso { margin-top: 26px; }
.fnm-app a.item-modelo { text-decoration: none; display: flex; flex-direction: column; }
.fnm-app a.hub-acao { text-decoration: none; display: grid; }

/* ---------- tema escuro: fundos pastel fixos do script ---------- */
:root[data-theme="dark"] .fnm-app .alu2 .alu-card, :root[data-theme="dark"] .fnm-app .alu-card { background: #1d2025; }
:root[data-theme="dark"] .fnm-app .av-tache em.ok, :root[data-theme="dark"] .fnm-app .contador { background: rgba(63,185,80,.16); color: #3fb950; }
:root[data-theme="dark"] .fnm-app .av-tache em.alto, :root[data-theme="dark"] .fnm-app .contador.alto { background: rgba(255,107,107,.16); color: #ff6b6b; }
:root[data-theme="dark"] .fnm-app .he-ico, :root[data-theme="dark"] .fnm-app .alu-num { color: #0b0c0e; }

/* Chaves de eixo do script: no site todos os eixos ficam abertos (blocos escondidos). */
.fnm-app .chave-bloco, .fnm-app .bloco:has(#el-chaves) { display: none !important; }

/* =================== página do tema (tâche): estudar → fazer → dicas → modelo =================== */
.fnm-app .tm-pagina { display: block; max-width: 980px; margin: 0 auto; }
.fnm-app .tm-pagina.com-dictee, .fnm-app .tm-pagina.com-reescrita { display: grid; max-width: none; }
.fnm-app .tm-cab { padding: 26px 28px 22px; border-radius: 26px; background: var(--vidro-forte); border: 1px solid var(--linha); box-shadow: var(--sombra); margin-bottom: 18px; }
.fnm-app .tm-cab .modele-titulo { font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.3; margin: 12px 0 18px; }
.fnm-app .tm-acoes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fnm-app .tm-fazer-bt { display: inline-flex; align-items: center; gap: 14px; padding: 12px 22px 12px 12px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; text-align: left;
  background: linear-gradient(135deg, #1C2B3A, #2f4a63); color: #fff; box-shadow: 0 10px 24px -12px rgba(28,43,58,.8); transition: transform .15s, box-shadow .15s; }
.fnm-app .tm-fazer-bt:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(28,43,58,.9); }
.fnm-app .tm-fazer-bt b { display: block; font-size: 1.02rem; }
.fnm-app .tm-fazer-bt small { display: block; opacity: .8; font-size: .8rem; }
.fnm-app .tm-play { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #F2B33D; color: #1C2B3A; font-size: 15px; flex: none; }
.fnm-app .tm-fazer-bt.ativo .tm-play { background: #3CB179; color: #fff; animation: tm-pulso 2s infinite; }
@keyframes tm-pulso { 0%,100% { box-shadow: 0 0 0 0 rgba(60,177,121,.55); } 50% { box-shadow: 0 0 0 8px rgba(60,177,121,0); } }

.fnm-app .tm-bloco { display: block; margin: 0 0 16px; padding: 0; border-radius: 22px; background: var(--vidro-forte); border: 1px solid var(--linha); box-shadow: var(--sombra); overflow: hidden; }
.fnm-app .tm-bloco > :not(.tm-bloco-cab) { margin-left: 24px; margin-right: 24px; }
.fnm-app .tm-bloco > :last-child { margin-bottom: 22px; }
.fnm-app .tm-bloco-cab { display: flex; align-items: center; gap: 14px; padding: 18px 24px; list-style: none; }
.fnm-app summary.tm-bloco-cab { cursor: pointer; user-select: none; }
.fnm-app summary.tm-bloco-cab::-webkit-details-marker { display: none; }
.fnm-app summary.tm-bloco-cab:hover { background: rgba(var(--branco-rgb), .35); }
.fnm-app .tm-bloco-cab h2 { margin: 0; font-size: 1.15rem; }
.fnm-app .tm-bloco-cab p { margin: 2px 0 0; color: var(--tinta-suave); font-size: .9rem; }
.fnm-app .tm-bloco-cab > div { flex: 1; }
.fnm-app .tm-num { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: #1C2B3A; color: #fff; }
.fnm-app .tm-sujet .tm-num { background: #3C7DD9; }
.fnm-app .tm-dicas .tm-num, .fnm-app .tm-fazer .tm-num { background: #F2B33D; color: #1C2B3A; }
.fnm-app .tm-modele .tm-num { background: #3CB179; }
.fnm-app .tm-fazer { border: 2px solid #F2B33D; }
.fnm-app .tm-seta { width: 34px; height: 34px; border-radius: 50%; flex: none; background: rgba(var(--branco-rgb), .6); position: relative; transition: transform .2s; }
.fnm-app .tm-seta::after { content: ""; position: absolute; left: 12px; top: 10px; width: 8px; height: 8px; border-right: 2px solid var(--tinta); border-bottom: 2px solid var(--tinta); transform: rotate(45deg); }
.fnm-app details[open] > summary .tm-seta { transform: rotate(180deg); }
.fnm-app .tm-bloco .bloco { box-shadow: none; }
.fnm-app .tm-sujet .consigne p { font-size: 1.08rem; line-height: 1.6; }

/* dossiê de leitura */
.fnm-app .tm-sub { font-size: 1rem; margin: 22px 0 12px; color: var(--tinta-suave); text-transform: uppercase; letter-spacing: .06em; }
.fnm-app .tm-leituras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .fnm-app .tm-leituras { grid-template-columns: 1fr; } }
.fnm-app .tm-leitura { padding: 16px 18px; border-radius: 16px; background: rgba(var(--branco-rgb), .55); border: 1px solid var(--linha); }
.fnm-app .tm-leitura h4 { margin: 4px 0 8px; font-size: 1.02rem; }
.fnm-app .tm-leitura p { margin: 0 0 10px; line-height: 1.6; font-size: .95rem; }
.fnm-app .tm-leitura small { color: var(--tinta-suave); font-size: .76rem; }
.fnm-app .tm-leitura-n { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3C7DD9; }

/* modelo com a legenda ao lado */
.fnm-app .tm-modele-grade { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: start; }
.fnm-app .tm-legenda { position: sticky; top: calc(var(--topo-site, 70px) + 12px); }
@media (max-width: 860px) { .fnm-app .tm-modele-grade { grid-template-columns: 1fr; } .fnm-app .tm-legenda { position: static; order: -1; } }

/* área de resposta */
.fnm-app .tm-escrita { margin-top: 14px; }
.fnm-app .tm-escrita .editor { min-height: 280px; font-size: 1.05rem; line-height: 1.7; }
.fnm-app .tm-escrita-acoes { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }
.fnm-app .tm-correcao { margin: 14px 0 0; }

/* =================== professor ao vivo =================== */
.fnm-app .av-sala { margin-top: 14px; border-radius: 18px; border: 1px solid var(--linha); background: rgba(var(--branco-rgb), .55); overflow: hidden; }
.fnm-app .av-sala-cab { display: flex; align-items: center; gap: 12px; padding: 14px 16px; flex-wrap: wrap; }
.fnm-app .av-sala-cab > div { flex: 1; min-width: 200px; }
.fnm-app .av-sala-cab small { display: block; color: var(--tinta-suave); }
.fnm-app .av-ponto { width: 12px; height: 12px; border-radius: 50%; background: #E0524A; animation: tm-pulso 2s infinite; flex: none; }
.fnm-app .av-chamada { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: rgba(60,177,121,.12); flex-wrap: wrap; }
.fnm-app .av-chamada span { flex: 1; }
.fnm-app .av-chat { border-top: 1px solid var(--linha); padding: 12px 16px; }
.fnm-app .av-msgs { max-height: 200px; overflow: auto; display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.fnm-app .av-m { max-width: 80%; padding: 8px 12px; border-radius: 14px; background: rgba(var(--branco-rgb), .8); font-size: .92rem; }
.fnm-app .av-m b { display: block; font-size: .72rem; color: var(--tinta-suave); }
.fnm-app .av-m.aluno { align-self: flex-end; background: rgba(60,125,217,.14); }
.fnm-app .av-m.professor { align-self: flex-start; background: rgba(242,179,61,.18); }
.fnm-app .av-msg-linha { display: flex; gap: 8px; flex-wrap: wrap; }
.fnm-app .av-msg-linha input { flex: 1; min-width: 180px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--linha); background: var(--vidro-forte); color: var(--tinta); font: inherit; }
.fnm-app .av-sala-fim { padding: 14px 16px; color: var(--tinta-suave); }
.fnm-app .av-card.sala.aguardando { border: 2px solid #E0524A; }
.fnm-app .av-status { font-size: .8rem; color: var(--tinta-suave); }
.fnm-app .av-sala-tit { margin: 6px 0 10px; font-size: .9rem; }
.fnm-app .av-sala-prof { border: 2px solid #3CB179; }
.fnm-app .av-sala-topo { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.fnm-app .av-sala-topo h3 { margin: 6px 0 2px; }
.fnm-app .av-sala-bts { display: flex; gap: 8px; flex-wrap: wrap; }
.fnm-app .tm-selo { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #E0524A; color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.fnm-app .av-sala-grade { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; margin-top: 14px; }
@media (max-width: 900px) { .fnm-app .av-sala-grade { grid-template-columns: 1fr; } }
.fnm-app .av-ao-vivo { min-height: 220px; max-height: 460px; overflow: auto; padding: 14px; border-radius: 14px; background: rgba(var(--branco-rgb), .7); line-height: 1.7; font-size: 1.02rem; }
.fnm-app .av-roteiro { padding: 14px; border-radius: 14px; background: rgba(var(--branco-rgb), .45); max-height: 640px; overflow: auto; }
.fnm-app .ro-bloco { margin: 0 0 10px; }
.fnm-app .ro-bloco summary { cursor: pointer; font-weight: 600; }
.fnm-app .ro-bloco li small { display: block; color: var(--tinta-suave); }

/* =================== legibilidade: hub, outils, Mon espace, Espace professeur =================== */
/* Ações do hub (prova, caixa de ferramentas, cronômetro): uma por linha, largura total */
.fnm-app .hub-acoes { display: flex; flex-direction: column; gap: 14px; margin: 26px 0; }
.fnm-app .hub-acao { --cor: #3C7DD9; position: relative; overflow: hidden; width: 100%; min-height: 96px;
  display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 18px; row-gap: 3px; align-items: center; text-align: left;
  padding: 20px 24px 20px 28px; border-radius: 22px; border: 1px solid var(--linha); background: var(--vidro-forte); box-shadow: var(--sombra);
  color: var(--tinta); cursor: pointer; font: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.fnm-app .hub-acao::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--cor); }
.fnm-app .hub-acao::after { content: "→"; grid-column: 3; grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-size: 18px; font-weight: 700; color: var(--cor); background: color-mix(in srgb, var(--cor) 14%, transparent); transition: transform .18s, background .18s, color .18s; }
.fnm-app .hub-acao:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--cor) 45%, transparent); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--cor) 70%, transparent); }
.fnm-app .hub-acao:hover::after { transform: translateX(4px); background: var(--cor); color: #fff; }
.fnm-app .hub-acao > span, .fnm-app .hub-acao > span:empty { display: grid !important; grid-column: 1; grid-row: 1 / 3; width: 60px; height: 60px; border-radius: 18px; place-items: center; font-size: 28px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--cor) 26%, transparent), color-mix(in srgb, var(--cor) 10%, transparent)); }
.fnm-app .hub-acao > b { grid-column: 2; grid-row: 1; align-self: end; font-size: 1.18rem; line-height: 1.3; color: var(--tinta); }
.fnm-app .hub-acao > small { grid-column: 2; grid-row: 2; align-self: start; font-size: .93rem; line-height: 1.45; color: var(--tinta-suave); }
.fnm-app .hub-acao > span:empty::before { content: "✦"; }
.fnm-app .hub-acao[data-hub="epreuve"] { --cor: #E0524A; }
.fnm-app .hub-acao[data-hub="epreuve"] > span::before { content: "⏱"; }
.fnm-app .hub-acao[data-hub="outils"] { --cor: #D99A1E; }
.fnm-app .hub-acao[data-hub="outils"] > span::before { content: "🧰"; }
.fnm-app .hub-acao[data-hub="chrono"] { --cor: #3CB179; }
.fnm-app .hub-acao[data-hub="chrono"] > span::before { content: "🎙"; }
@media (max-width: 560px) {
  .fnm-app .hub-acao { grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 14px; padding: 16px 16px 16px 20px; min-height: 0; }
  .fnm-app .hub-acao > span, .fnm-app .hub-acao > span:empty { width: 48px; height: 48px; font-size: 22px; border-radius: 14px; }
  .fnm-app .hub-acao::after { width: 34px; height: 34px; font-size: 15px; }
}

.fnm-app .outils-secao { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; margin: 30px 0 14px; }
.fnm-app .outils-secao i { width: 10px; height: 28px; border-radius: 6px; background: #3C7DD9; }
.fnm-app .outils-secao i.oral { background: #3CB179; }
.fnm-app .grade-trames { gap: 16px; }
.fnm-app .grade-trames .bloco, .fnm-app .boite { font-size: 1rem; line-height: 1.6; }

.fnm-app .abas-espace { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; border-radius: 999px; background: var(--vidro-forte); border: 1px solid var(--linha); width: fit-content; max-width: 100%; margin: 6px 0 18px; }
.fnm-app .aba-esp { padding: 9px 18px; border-radius: 999px; border: 0; background: none; color: var(--tinta); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.fnm-app .aba-esp.on { background: #1C2B3A; color: #fff; }
.fnm-app .aba-esp:not(.on):hover { background: rgba(var(--branco-rgb), .7); }
.fnm-app .espace-resumo { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 22px; }
.fnm-app .er-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--linha); background: var(--vidro-forte); color: var(--tinta); font: inherit; text-align: left; cursor: pointer; }
.fnm-app .er-item b { font-size: 1.8rem; line-height: 1; color: var(--tinta-suave); }
.fnm-app .er-item.on b { color: #E0524A; }
.fnm-app .er-item span { font-size: .9rem; }
.fnm-app .devoir-item { font-size: 1rem; line-height: 1.5; }

.fnm-app .prof-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.fnm-app .prof-menu { position: sticky; top: calc(var(--topo-site, 70px) + 12px); display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: 20px; background: var(--vidro-forte); border: 1px solid var(--linha); box-shadow: var(--sombra); max-height: calc(100vh - var(--topo-site, 70px) - 24px); overflow: auto; }
.fnm-app .prof-grupo { display: flex; flex-direction: column; gap: 2px; }
.fnm-app .prof-grupo-tit { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-suave); padding: 0 10px 4px; }
.fnm-app .prof-item { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 12px; border: 0; background: none; color: var(--tinta); font: inherit; font-size: .95rem; cursor: pointer; text-decoration: none; }
.fnm-app .prof-item:hover { background: rgba(var(--branco-rgb), .7); }
.fnm-app .prof-item[aria-pressed="true"] { background: #1C2B3A; color: #fff; }
.fnm-app .prof-conteudo { min-width: 0; }
@media (max-width: 860px) { .fnm-app .prof-layout { grid-template-columns: 1fr; } .fnm-app .prof-menu { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; } .fnm-app .prof-grupo { min-width: 180px; } }

/* sorteio no celular: as opções longas dos selects não alargam a página */
.fnm-app .tirage > *, .fnm-app .tirage-campos > * { min-width: 0; }
.fnm-app .tirage-campos select { width: 100%; max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 480px) { .fnm-app .tirage { padding: 20px 16px; } }

/* ícones e cores das demais ações do mesmo tipo */
.fnm-app #sm-ep, .fnm-app #esp-epreuves { --cor: #E0524A; }
.fnm-app #sm-ep > span::before, .fnm-app #esp-epreuves > span::before { content: "⏱"; }
.fnm-app #sm-chrono { --cor: #3CB179; }
.fnm-app #sm-chrono > span::before { content: "🎙"; }
.fnm-app a.hub-acao[href^="simulado-tcf"] { --cor: #7A5AF8; }
.fnm-app a.hub-acao[href^="simulado-tcf"] > span::before { content: "🎯"; }
.fnm-app a.hub-acao[href^="producao-oral-exercicios"] { --cor: #3C7DD9; }
.fnm-app a.hub-acao[href^="producao-oral-exercicios"] > span::before { content: "🎧"; }

/* « Fazer este tema »: produção enviada e IA indisponível */
.fnm-app .tm-fazer-bt.enviado { background: linear-gradient(135deg, #2E8B62, #3CB179); }
.fnm-app .tm-fazer-bt.enviado .tm-play { background: #fff; color: #2E8B62; }
.fnm-app .escolha-correcao label.indisponivel { opacity: .55; cursor: not-allowed; }

/* Espace professeur: fila do Sistema de Correção */
.fnm-app .ce-filtros { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fnm-app .ce-abas { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(var(--branco-rgb), .6); border: 1px solid var(--linha); }
.fnm-app .ce-aluno { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.fnm-app .ce-aluno select { padding: 8px 12px; border-radius: 12px; border: 1px solid var(--linha); background: var(--vidro-forte); color: var(--tinta); font: inherit; min-width: 200px; }
.fnm-app .ce-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.fnm-app .ce-item { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 18px; background: var(--vidro-forte); border: 1px solid var(--linha); border-left: 5px solid #E0524A; box-shadow: var(--sombra); }
.fnm-app .ce-item.corrigida { border-left-color: #3CB179; }
.fnm-app .ce-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fnm-app .ce-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fnm-app .ce-tarefa { background: #fff3d6; color: #8a5a00; font-weight: 700; }
.fnm-app .ce-minha { background: rgba(60,177,121,.16); color: #2E8B62; }
.fnm-app .ce-fila { background: rgba(224,82,74,.12); color: #b7322b; }
.fnm-app .ce-nota { font-weight: 800; font-size: 1.1rem; color: #2E8B62; }
.fnm-app .ce-titulo { margin: 0; font-size: .95rem; line-height: 1.45; }
.fnm-app .ce-item small { color: var(--tinta-suave); }
.fnm-app .ce-item a { align-self: flex-start; text-decoration: none; }

/* coletânea: textos do tema, do eixo e manchetes */
.fnm-app .tm-sub2 { margin: 16px 0 8px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-suave); }
.fnm-app .tm-leituras.um { grid-template-columns: 1fr; }
.fnm-app .tm-leitura { border-top: 4px solid #3C7DD9; }
.fnm-app .tm-leitura.tipo-noticia { border-top-color: #E0524A; }
.fnm-app .tm-leitura.tipo-cientifico { border-top-color: #7A5AF8; }
.fnm-app .tm-leitura.tipo-livro { border-top-color: #D99A1E; }
.fnm-app .tm-leitura.tipo-eixo { border-top-color: #3CB179; }
.fnm-app .tm-leitura.tipo-noticia .tm-leitura-n { color: #c0392b; }
.fnm-app .tm-leitura.tipo-cientifico .tm-leitura-n { color: #6a4ae0; }
.fnm-app .tm-leitura.tipo-livro .tm-leitura-n { color: #a8720e; }
.fnm-app .tm-leitura.tipo-eixo .tm-leitura-n { color: #2E8B62; }
.fnm-app .tm-imprensa ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fnm-app .tm-imprensa li { padding: 10px 14px; border-radius: 12px; background: rgba(var(--branco-rgb), .55); border: 1px solid var(--linha); }
.fnm-app .tm-imprensa li a { font-weight: 600; color: var(--tinta); text-decoration: none; }
.fnm-app .tm-imprensa li a:hover { text-decoration: underline; }
.fnm-app .tm-imprensa li small { display: block; color: var(--tinta-suave); font-size: .76rem; margin-top: 2px; }

/* créditos de correção ao lado do título do hub */
.fnm-app .acc-titulo-linha { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fnm-app .acc-titulo-linha .titulo-pagina { margin: 0; }
.fnm-app .creditos-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; text-decoration: none; color: var(--tinta);
  background: var(--vidro-forte); border: 1px solid var(--linha); box-shadow: var(--sombra); transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.fnm-app .creditos-pill:hover { transform: translateY(-1px); }
.fnm-app .creditos-pill .cp-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #F2B33D, #E4C043); color: #1C2B3A; font-size: 16px; }
.fnm-app .creditos-pill .cp-num { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.fnm-app .creditos-pill .cp-rot { font-size: .82rem; color: var(--tinta-suave); line-height: 1.2; }
.fnm-app .creditos-pill.zero .cp-ico { background: rgba(224,82,74,.15); color: #c0392b; }
.fnm-app .creditos-pill.zero .cp-num { color: #c0392b; }

/* confirmação de envio (no lugar da caixa do navegador) */
.fnm-app .fnm-modal-fundo { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 16px; background: rgba(15,23,32,.55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .18s; }
.fnm-app .fnm-modal-fundo.aberto { opacity: 1; }
.fnm-app .fnm-modal { width: min(460px, 100%); padding: 28px 26px 22px; border-radius: 24px; background: var(--vidro-forte); border: 1px solid var(--linha); box-shadow: 0 30px 70px -25px rgba(0,0,0,.6);
  text-align: center; transform: translateY(10px) scale(.98); transition: transform .18s; color: var(--tinta); }
.fnm-app .fnm-modal-fundo.aberto .fnm-modal { transform: none; }
.fnm-app .fm-ico { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; font-size: 24px; font-weight: 800; background: rgba(60,125,217,.14); color: #3C7DD9; }
.fnm-app .fnm-modal h3 { margin: 0 0 8px; font-size: 1.25rem; }
.fnm-app .fm-texto { margin: 0 0 16px; color: var(--tinta-suave); font-size: .93rem; line-height: 1.5; }
.fnm-app .fm-creditos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; }
.fnm-app .fm-creditos > div { padding: 12px 6px; border-radius: 16px; background: rgba(var(--branco-rgb), .6); border: 1px solid var(--linha); display: flex; flex-direction: column; gap: 2px; }
.fnm-app .fm-creditos span { font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--tinta-suave); }
.fnm-app .fm-creditos b { font-size: 1.7rem; line-height: 1.1; }
.fnm-app .fm-creditos small { font-size: .74rem; color: var(--tinta-suave); }
.fnm-app .fm-creditos .pos b { color: #2E8B62; }
.fnm-app .fm-creditos .neg b, .fnm-app .fm-creditos .neg small { color: #c0392b; }
.fnm-app .fm-alerta { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: rgba(224,82,74,.1); color: #b7322b; font-size: .88rem; }
.fnm-app .fm-acoes { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.fnm-app .fm-acoes .botao-principal { text-decoration: none; }
@media (max-width: 420px) { .fnm-app .fm-creditos b { font-size: 1.35rem; } }
.fnm-app .fm-acoes > * { flex: 1 1 140px; width: auto; margin: 0; justify-content: center; text-align: center; }
.fnm-app .fm-acoes .ferramenta { padding: 12px 18px; }

/* Nível do DELF (A1 a B2): escolhido no topo do Ambiente de Produção */
.fnm-app .niveis-delf { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 4px 0 22px; padding: 12px 16px; border-radius: 14px;
  background: color-mix(in srgb, #3b6ea5 8%, transparent); border: 1px solid color-mix(in srgb, #3b6ea5 22%, transparent); }
.fnm-app .niveis-delf > span { font-weight: 700; font-size: .9rem; margin-right: 4px; }
.fnm-app .niveis-delf .chip { min-width: 52px; font-weight: 700; }
.fnm-app .niveis-delf .chip[aria-pressed="true"] { background: #3b6ea5; border-color: #3b6ea5; color: #fff; }
.fnm-app .niveis-delf small { flex-basis: 100%; opacity: .8; line-height: 1.45; }
.fnm-app .niveis-delf.carregando { opacity: .6; pointer-events: none; }

/* Épreuve orale: as tâches da prova, a barra da tâche em curso e os resultados */
.fnm-app .eo-taches { display: grid; gap: 10px; margin-bottom: 10px; }
.fnm-app .eo-tache { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(var(--branco-rgb, 255,255,255), .55); border: 1px solid rgba(22,33,58,.1); }
.fnm-app .eo-tache b { display: block; }
.fnm-app .eo-tache small { opacity: .75; }
.fnm-app .eo-barra { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 16px; border-radius: 999px; background: #1c2b3a; color: #fff; font-weight: 600; width: fit-content; max-width: 100%; }
.fnm-app .eo-barra span { padding: 3px 10px; border-radius: 999px; background: #ffd60a; color: #16213a; font-size: .8rem; font-weight: 800; }
.fnm-app .eo-res audio { width: 100%; margin: 6px 0; }

/* Navegação: « ← Voltar para <tela anterior> » no topo de todas as telas do Ambiente de Produção */
.fnm-app .volta-tela { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid rgba(22, 33, 58, .16); background: rgba(255, 255, 255, .72); color: #16213a; font: 600 .86rem 'Poppins', sans-serif; cursor: pointer;
  box-shadow: 0 6px 18px -12px rgba(22, 33, 58, .6); transition: transform .12s, background .12s; position: sticky; top: calc(var(--topo-site, 70px) + 8px); z-index: 25; }
.fnm-app .volta-tela:hover { transform: translateX(-3px); background: #fff; }
.fnm-app .volta-tela[hidden] { display: none; }
.fnm-app .volta-tela b { font-weight: 800; }
:root[data-theme="dark"] .fnm-app .volta-tela { background: rgba(255, 255, 255, .08); color: #f2f2f2; border-color: rgba(255, 255, 255, .14); }

/* « Em Destaque » (En vedette): temas do mês escolhidos pela equipe, no topo do accueil */
.fnm-app .emd { position: relative; margin: 22px 0 26px; padding: 26px 26px 22px; border-radius: 22px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(228,192,67,.35) 0%, rgba(228,192,67,0) 45%), linear-gradient(135deg, #1C2B3A 0%, #24405c 60%, #2d5275 100%);
  box-shadow: 0 22px 46px -30px rgba(28,43,58,.9); }
.fnm-app .emd::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 34px solid rgba(213,30,40,.18); pointer-events: none; }
.fnm-app .emd-cab { position: relative; z-index: 1; margin-bottom: 14px; }
.fnm-app .emd-selo { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #E4C043; color: #1C2B3A; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.fnm-app .emd-cab h2 { margin: 10px 0 6px; font-size: clamp(22px, 3.2vw, 30px); color: #fff; line-height: 1.15; }
.fnm-app .emd-cab p { margin: 0; color: rgba(255,255,255,.82); max-width: 640px; }
.fnm-app .emd-grupo { position: relative; z-index: 1; margin-top: 16px; }
.fnm-app .emd-grupo-tit { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; color: #fff; text-transform: uppercase; letter-spacing: .05em; }
.fnm-app .emd-grupo-tit em { font-style: normal; font-size: 12px; background: rgba(255,255,255,.16); border-radius: 999px; padding: 2px 9px; }
.fnm-app .emd-ico { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.14); font-size: 15px; }
.fnm-app .emd-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.fnm-app .emd-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 14px; border-radius: 16px; cursor: pointer; color: #1C2B3A;
  background: #fff; border-top: 5px solid var(--cor, #E4C043); box-shadow: 0 12px 26px -20px rgba(0,0,0,.7); transition: transform .15s, box-shadow .15s; }
.fnm-app .emd-card:hover, .fnm-app .emd-card:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 32px -18px rgba(0,0,0,.75); outline: none; }
.fnm-app .emd-card-topo { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.fnm-app .emd-tache { background: #1C2B3A; color: #E4C043; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.fnm-app .emd-sous { color: #5b6b7b; font-weight: 600; }
.fnm-app .emd-card h4 { margin: 0; font-size: 16px; line-height: 1.3; color: #1C2B3A; }
.fnm-app .emd-card p { margin: 0; font-size: 13.5px; color: #4a5866; line-height: 1.45; }
.fnm-app .emd-rodape { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; padding-top: 6px; border-top: 1px dashed #d8dee5; }
.fnm-app .emd-eixo { color: #5b6b7b; }
.fnm-app .emd-rodape b { color: #D51E28; white-space: nowrap; }
@media (max-width: 640px) { .fnm-app .emd { padding: 20px 16px 16px; border-radius: 18px; } .fnm-app .emd-grade { grid-template-columns: 1fr; } }
:root[data-theme="dark"] .fnm-app .emd-card { background: #1d2025; color: #f2f2f2; }
:root[data-theme="dark"] .fnm-app .emd-card h4 { color: #f2f2f2; }
:root[data-theme="dark"] .fnm-app .emd-card p, :root[data-theme="dark"] .fnm-app .emd-sous, :root[data-theme="dark"] .fnm-app .emd-eixo { color: #b8c0c8; }
:root[data-theme="dark"] .fnm-app .emd-rodape { border-top-color: rgba(255,255,255,.12); }
:root[data-theme="dark"] .fnm-app .emd-rodape b { color: #ff7b7b; }

/* Correção por cores ao vivo (sala com o professor): o texto do aluno grifado pelo professor */
.fnm-app .av-correcao { margin: 12px 0; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(213,30,40,.25); background: rgba(213,30,40,.04); }
.fnm-app .av-correcao h4 { margin: 0 0 4px; display: flex; gap: 8px; align-items: center; }
.fnm-app .av-correcao h4 em { font-style: normal; font-size: .75rem; background: #D51E28; color: #fff; border-radius: 999px; padding: 1px 8px; }
.fnm-app .av-corr-dica { margin: 0 0 8px; font-size: .82rem; opacity: .75; }
.fnm-app .av-correcao .mav-texto { white-space: pre-wrap; line-height: 1.75; max-height: 320px; overflow: auto; padding: 10px 12px; border-radius: 10px; background: var(--papel, #fff); border: 1px solid var(--linha, #e5e7eb); }
.fnm-app .mav { background: color-mix(in srgb, var(--mav) 22%, transparent); border-bottom: 2px solid var(--mav); color: inherit; border-radius: 3px; padding: 0 1px; transition: background .3s; }
.fnm-app .mav sup { font-size: .62rem; font-weight: 800; color: var(--mav); margin-left: 1px; }
.fnm-app .mav-lista { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fnm-app .mav-item { display: flex; gap: 8px; align-items: flex-start; border-left: 4px solid var(--mav); background: color-mix(in srgb, var(--mav) 8%, transparent); border-radius: 8px; padding: 6px 8px; font-size: .86rem; }
.fnm-app .mav-item > div { flex: 1; }
.fnm-app .mav-item q { opacity: .75; }
.fnm-app .mav-item p { margin: 2px 0 0; }
.fnm-app .mav-n { font-weight: 800; color: var(--mav); min-width: 14px; }
.fnm-app .emd { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); column-gap: 22px; align-items: start; }
.fnm-app .emd-cab { grid-column: 1 / -1; }
.fnm-app .emd-grupo .emd-grade { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Página do tema embutida no Dever de Casa (?embed=dever): só o conteúdo do tema */
.fnm-embed-dever body { background: transparent !important; min-height: 0; }
.fnm-embed-dever #app-navbar, .fnm-embed-dever body > footer, .fnm-embed-dever #themeToggleBtn, .fnm-embed-dever .estudo-timer-bar,
.fnm-embed-dever .fnm-app .trilha, .fnm-embed-dever .fnm-app .volta-tela, .fnm-embed-dever .fnm-app .rodape-nav,
.fnm-embed-dever .fnm-app #tm-fazer, .fnm-embed-dever .fnm-app .tm-acoes, .fnm-embed-dever .fnm-app .faixa-devoir,
.fnm-embed-dever .fnm-app #avisos-globais { display: none !important; }
.fnm-embed-dever .fnm-app { padding-top: 0 !important; margin-top: 0 !important; }
.fnm-embed-dever .fnm-app main { padding: 0 !important; max-width: none !important; }

/* ---------- página do tema: modo edição do administrador ----------
   Cada bloco editável (data-ed) ganha moldura tracejada e um rótulo; a barra fica presa no topo. */
.fnm-app .ed-barra {
  position: sticky; top: calc(var(--topo-site, 70px) + 8px); z-index: 25; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 18px; padding: 14px 18px; border-radius: 18px; background: var(--marinho); color: var(--papel); box-shadow: var(--sombra);
}
.fnm-app .ed-barra > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fnm-app .ed-barra span { font-size: 13px; opacity: .85; }
.fnm-app .ed-barra-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.fnm-app .ed-barra .botao-principal { width: auto; padding: 10px 20px; }
.fnm-app .ed-zona-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--tinta-suave); }
.fnm-app .ed-zona-cab em { font-style: normal; color: var(--dourado-escuro); }
.fnm-app .ed-restaurar { border: 1px solid var(--linha); background: var(--vidro-forte); color: var(--tinta); border-radius: 999px; padding: 5px 12px; font-size: 12px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.fnm-app .ed-zona { outline: 2px dashed var(--dourado); outline-offset: 6px; border-radius: 10px; min-height: 2.4em; cursor: text; transition: outline-color .15s, background .15s; }
.fnm-app .ed-zona:hover { background: rgba(255, 214, 10, .06); }
.fnm-app .ed-zona:focus { outline-style: solid; background: rgba(255, 214, 10, .08); }
.fnm-app .ed-ativo .lateral { position: static; }
