/* Gabarito — estilo Limpo (único visual do site; o app nativo das lojas não usa a classe .ts).
   Papel branco, uma fonte só (Inter), linhas finas, cantos pequenos. Azul-marinho do ícone como cor principal;
   o vermelho do ícone aparece só como detalhe (pasta aberta, marcação, aviso). Sem rosa, sem serifa, sem tema escuro.
   Carregado DEPOIS do serifado.css: troca os tokens (as telas que usam os nomes antigos herdam o visual) e refaz o cabeçalho,
   o rodapé, os botões e a tela Provas (explorador de pastas, em limpo.js). Cores só pelos tokens abaixo. */

/* ============================== TOKENS ============================== */
:root {
  --rosa: #C81E1E;            /* vermelho do ícone: só detalhe */
  --rosa-escuro: #A31515;     /* vermelho para texto e linhas finas (contraste 7:1 sobre branco) */
  --preto: #071530;           /* hover dos botões escuros */
  --branco: #FFFFFF;
  --tinta: #0B1F44;           /* azul-marinho do app e do ícone: texto, barra e rodapé */
  --azul: #14346E;            /* azul dos botões do app (Nova prova, Corrigir agora) */
  --azul-h: #0B1F44;          /* botão ao passar o mouse */
  --sel: #DCEBFF;             /* azul claro do app: linha selecionada */
  --papel: #F7F9FC;            /* fundo das telas do app */
  --creme: #FFFFFF;           /* texto sobre azul-marinho */
  --folha: #FFFFFF;
  --mesa: #F0F3F8;            /* áreas de apoio dentro dos cartões */
  --fino: #E5EAF1;            /* linha de tabela */
  --suave: #D5DCE8;           /* linha de cartão e campo (a do app) */
  --texto-2: #43526F;         /* texto de apoio (o do app; contraste 7,9:1 sobre branco) */
  --texto-3: #5E6D88;         /* rótulos pequenos (o #7C8BA5 do app, escurecido para passar de 4,5:1) */
  --apoio-escuro: #C3D0F0;    /* texto de apoio sobre azul-marinho (o do app) */
  --trilho: #E5EAF1;
  --ok: #14854A; --ok-traco: #BFE3CF; --ok-fundo: #EDF8F2; /* situação "Aplicada", etiqueta "pronta" */
  --erro: #D81E3C;
  --pen-azul: #1F4296;
  --pen-verm: #C81E1E;
  --azul-2: #1F4296;          /* azul do ícone, para detalhes */
  --tinta-rgb: 11, 31, 68; --rosa-rgb: 20, 52, 110; /* tons de apoio (brilho, fundo de destaque) saem do azul; o vermelho de erro tem token próprio */ --erro-rgb: 216, 30, 60; --folha-rgb: 255, 255, 255; --creme-rgb: 255, 255, 255;
  --traco: var(--suave);
  --traco-suave: var(--fino);
  --f-serif: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;  /* a serifa deixa de existir: tudo em Inter */
  --f-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ink-titulo: #141414;      /* título das telas (o do app) */
  --lm-r: 6px;                /* raio padrão */
  --lm-barra: 86px;
  --ambar: #E3A81C; --ambar-t: #7A5200; /* aviso curto (falta marcar a resposta certa) */
  --guia: #8EA3C8;            /* linhas pontilhadas da árvore de pastas */
  /* formatação do texto das questões (o caderno em PDF usa as mesmas cores, em sheets.js) */
  --fmt-vermelho: #C02020; --fmt-azul: #1F4296; --fmt-verde: #16783C; --fmt-laranja: #CD6400; --fmt-amarelo: #C9A000; --fmt-roxo: #7030A0; --fmt-grifo: #FFE86E; --fmt-fundo: #EAEFF2;
}
body.ts {
  --bg: var(--papel); --bg-2: var(--mesa); --surface: var(--folha); --card: var(--folha); --line: var(--suave); --line-2: var(--fino);
  --ink: var(--tinta); --ink-2: var(--texto-2); --ink-3: var(--texto-3); --track: var(--trilho);
  --brand: var(--azul); --brand-hover: var(--azul-h); --brand-2: var(--rosa); --brand-soft: var(--sel); --brand-ink: var(--tinta); --on-brand: #fff;
  --lime: var(--azul); --lime-hover: var(--azul-h); --on-lime: #fff;
  --primary: var(--azul); --primary-hover: var(--azul-h); --primary-ink: var(--tinta); --primary-deep: var(--tinta); --primary-soft: var(--sel); --on-primary: #fff;
  --f-display: var(--f-sans); --f-body: var(--f-sans);
  --red-btn: var(--azul); --red-btn-hover: var(--azul-h);  /* botões principais do app (body.lateral) deixam de ser vermelhos */
  --crit: var(--erro); --crit-ink: var(--rosa-escuro); --crit-soft: rgba(var(--erro-rgb), .1);
  --cat-1: var(--tinta); --cat-2: var(--tinta); --cat-3: var(--tinta); --cat-4: var(--tinta); --cat-5: var(--tinta); --cat-6: var(--tinta); --cat-7: var(--tinta); --cat-8: var(--tinta);
  background: var(--papel); color: var(--tinta); font-family: var(--f-sans);
}
body.ts #mtSel, body.ts #mtRes .blist, body.ts #bpList { --mesa: var(--bg-2) }
html:has(body.ts) { background: var(--papel) }

/* ============================== BASE ============================== */
/* o rodapé fica no pé da janela mesmo em telas curtas */
body.ts.ts #app:not([hidden]) { display: flex !important; flex-direction: column; align-items: stretch; min-height: 100vh }
body.ts.ts #app > .hdr, body.ts.ts #app > #main, body.ts.ts #app > .rodape { width: auto; max-width: none; align-self: stretch }
body.ts.ts #app > #main { flex: 1 0 auto }
body.ts.ts h1, body.ts.ts h2, body.ts.ts h3 { font-family: var(--f-sans); font-weight: 700; letter-spacing: -.01em; text-transform: none }
body.ts.ts ::selection { background: var(--tinta); color: #fff }
body.ts.ts :focus-visible { outline: 2px solid var(--azul-2); outline-offset: 2px; border-radius: var(--lm-r); box-shadow: none }
body.ts.ts .hdr :focus-visible, body.ts.ts .rodape :focus-visible { outline-color: #fff }
body.ts.ts { -webkit-font-smoothing: antialiased }

/* Texto corrido justificado (regra do dono), exceto onde o alinhamento faz parte da forma. */
body.ts.ts .ts-sub, body.ts.ts .lm-prev p, body.ts.ts .empty p { text-align: justify; hyphens: auto }

/* ============================== GERADO: preenchimentos que eram rosa viram azul-marinho (vermelho fica só em detalhes) ============================== */
body.ts .hm-bolhas span:nth-child(2) i.on { background: var(--azul); border-color: var(--azul); color: #fff }
body.ts .topnav button[aria-current="page"]::after { background: var(--azul); color: #fff }
body.ts .step-n { border-color: var(--azul) }
body.ts .bk-ic { background: var(--azul); border-color: var(--azul); color: #fff }
body.ts .hm-bolhas span:nth-child(3) i.on { background: var(--azul); border-color: var(--azul); color: #fff }
body.ts .hm-kpi:nth-child(2) { border-color: color-mix(in srgb, var(--azul) 55%, transparent) }
body.ts .addbtn:hover, body.ts .bq.in .addbtn { background: var(--azul); border-color: var(--azul); color: #fff }
body.ts .chip.on, body.ts .bk-tema[aria-selected="true"] { background: var(--azul); border-color: var(--azul); color: #fff }
body.ts .step .step-ic, body.ts .step:nth-child(n) .step-ic { border-color: var(--azul) }
body.ts .step:hover { border-color: var(--azul) }
body.ts .step:hover .step-ic { background: var(--azul); color: #fff }
body.ts .step.done .step-ic { background: var(--azul); color: #fff }
body.ts .step:hover .step-n { background: var(--azul); border-color: var(--azul); color: #fff }
body.ts .atalhos-col > small::before { background: var(--azul); color: #fff }
body.ts .mini.del:hover { border-color: var(--azul) }
body.ts .mt-pp .nb { border: 2px solid var(--azul) }
body.ts .plan.dark .btn { background: var(--azul); border-color: var(--azul); color: #fff }
body.ts .plan.dark .btn:hover { background: var(--azul); border-color: var(--azul); color: #fff }
body.ts .side-nav.sd-fim .sd-c::after { border-color: color-mix(in srgb, var(--azul) 40%, transparent) }
body.ts .tr-4 .tr-frame { border: 2px solid var(--azul) }
body.ts.lateral .ie-ph .g1 { background: var(--azul); color: #fff }
body.ts.lateral .ph-row u { border: 2px solid var(--azul) }
body.ts.lateral .ph-row u.on { background: var(--azul); color: #fff }
body.ts.lateral .ph-fr { border: 3px solid var(--azul) }
body.ts.lateral .ph-nota { background: var(--azul); color: #fff }
body.ts.lateral .st.s3 { background: var(--azul); color: #fff }
body.ts.lateral .st.s3 { background: var(--azul); color: #fff }
body.ts.lateral .band.dband .k::before { background: var(--azul); color: #fff }
body.ts.lateral .btn.primary, body.ts.lateral .btn.lime, body.ts.lateral .stack[style*="--dc"] .btn.primary, body.ts.lateral .stack[style*="--dc"] .btn.lime, body.ts.lateral .hm-cta2 { background: var(--azul) !important; border-color: var(--azul) !important; color: #fff !important }
body.ts.lateral .btn.primary:hover, body.ts.lateral .btn.lime:hover { background: var(--azul) !important; border-color: var(--azul) !important; color: #fff }
body.ts.lateral .stack[style*="--dc"] > .tabs button[aria-selected="true"] .n { background: var(--azul); color: #fff }
body.ts.lateral .band .band-edit, body.ts.lateral .mt-insbtn, body.ts.lateral .dm-corr, body.ts.lateral .mt-campo[aria-pressed="true"], body.ts.lateral #montar > .mt-cabfix .mt-insbtn { background: var(--azul) !important; color: #fff !important }
body.ts .side-curso-h .side-del:hover { background: var(--azul); color: #fff }
body.ts .side-curso-h::before { background: var(--azul); color: #fff }
body.ts.lateral .tbl-al tr.al-row .av-sm { background: var(--azul); color: #fff }
body.ts.lateral .tbl-al input { border: 1px solid color-mix(in srgb, var(--azul) 40%, transparent) }
body.ts.lateral .tbl-al input:focus { border-color: var(--azul) }
body.ts.lateral .tbl-al button { border: 1px solid color-mix(in srgb, var(--azul) 50%, transparent) }
body.ts.lateral .tbl-al button:hover { background: var(--azul); color: #fff }
body.ts .ass-trilho i { background: var(--azul); color: #fff }
body.ts .ass-card.venc { background: var(--azul); color: #fff }
body.ts.lateral .side .side-disc > button[aria-current="page"] > i { background: var(--azul); color: #fff }
body.ts .bq-busca { border-color: var(--azul) }
body.ts .bq-busca:focus-within { border-color: var(--azul) }
body.ts.lateral .rodape-mail { border: 1px solid color-mix(in srgb, var(--azul) 40%, transparent) }
body.ts.lateral .rodape-mail:hover, body.ts.lateral .rodape-mail:focus-visible { background: var(--azul); color: #fff }
body.ts.lateral .tbl-al .al-chip button:hover { background: var(--azul); color: #fff }
body.ts.lateral .st.s1 { background: var(--azul); color: #fff }
body.ts.lateral .st.s3 { background: var(--azul); color: #fff }
body.ts.lateral .st.s4 { background: var(--azul); color: #fff }
body.ts.ts ::selection { background: var(--azul); color: #fff }
body.ts.ts .hdr .brand .ts-wm-o { background: var(--azul) }
.ts-pill.rosa { background: var(--azul); border-color: var(--azul); color: #fff }
.ts-bolha .bf, .ts-rarr .bf { background: var(--azul) }
.ts-mais { background: var(--azul); color: #fff }
.ts-pb.atual i { background: var(--azul); color: #fff }
.ts-pb:hover i { background: var(--azul); color: #fff }
.ts-ini .live { background: var(--azul) }
.ts-ini .fc-bar span { background: var(--azul) }
.ts-ccard .ts-bolha { border-color: var(--azul) }
.ts-bolhas i.on { background: var(--azul); border-color: var(--azul); color: #fff }
.ts-ccard.novo { background: var(--azul); color: #fff }
.ts-colb.ult .ts-colbar { background: var(--azul) }
.ts-pas:hover { background: var(--azul) }
.ts-fita i.on { background: var(--azul) }
body.ts.ts .tbl-al tr.al-row .av-sm { background: var(--azul); color: #fff }
@media (min-width: 901px) {
  body.ts.lateral .side .side-nav-l button[aria-current="page"]::before { background: var(--azul); color: #fff }
  body.ts.lateral .side .side-discs .side-add:hover { border-color: var(--azul) }
}

/* ============================== CABEÇALHO: BARRA PLANA AZUL-MARINHO ============================== */
body.ts.ts .hdr { position: sticky; top: 0; z-index: 30; background: var(--tinta); color: #fff; border: 0; box-shadow: none }
body.ts.ts .hdr-in { display: flex; align-items: center; gap: 22px; height: var(--lm-barra); max-width: none; padding: 0 max(16px, 2.2vw) }
body.ts.ts .hdr .brand { grid-column: auto; grid-row: auto; order: 1; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; color: #fff; --lg1: #fff; --lg2: #9FB6EE; --lg3: #FF5A5A }
body.ts.ts .hdr .brand .logo { display: block; width: 44px; height: 36px }
body.ts.ts .hdr .brand .wm { display: inline; font: 700 29px/1 var(--f-sans); letter-spacing: -.03em; color: #fff; text-transform: none }
body.ts.ts .hdr .brand .wm .wm-o { color: #FF5A5A; filter: none }
body.ts.ts .hdr .brand .ts-wm, body.ts.ts .hdr .brand .ts-wm-o, body.ts.ts .hdr .brand .edtag { display: none }
body.ts.ts .hdr .topnav { order: 2; display: flex !important; flex: 1; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 0; background: none; border: 0 }
body.ts.ts .hdr .topnav button { display: inline-flex; align-items: center; gap: 0; min-height: 54px; padding: 0 26px; border: 0; border-radius: 12px; background: none; color: rgba(255,255,255,.78); font: 600 18px/1 var(--f-sans); letter-spacing: 0; text-transform: none; cursor: pointer; transition: background .15s, color .15s }
body.ts.ts .hdr .topnav button .ic, body.ts.ts .hdr .topnav button svg { display: none }
body.ts.ts .hdr .topnav button:hover { background: rgba(255,255,255,.1); color: #fff }
body.ts.ts .hdr .topnav button[aria-current="page"] { background: rgba(255,255,255,.18); color: #fff; font-weight: 600; box-shadow: inset 0 -4px 0 #FF5A5A }
/* Passar de uma aba para a outra: a pílula clara desliza até a aba nova (um elemento só, .lm-nav-ind), o rótulo dá um leve "pop"
   e o conteúdo entra com um deslize curto. Com "reduzir movimento" ligado, nada se move. */
body.ts.ts .hdr-in.lm-anim { position: relative }
body.ts.ts .hdr .topnav.lm-anim button { position: relative; z-index: 1; transition: background .15s, color .15s, transform .15s }
body.ts.ts .hdr .topnav.lm-anim button:hover { transform: translateY(-1px) }
body.ts.ts .hdr .topnav.lm-anim button:active { transform: translateY(0) scale(.98) }
body.ts.ts .hdr .topnav.lm-anim button[aria-current="page"] { background: none; box-shadow: none }
body.ts.ts .hdr .lm-nav-ind { position: absolute; left: 0; top: 0; z-index: 0; width: 0; height: 54px; border-radius: 12px; background: rgba(255,255,255,.18); box-shadow: inset 0 -4px 0 #FF5A5A; opacity: 0; pointer-events: none; transform: translate(0, 0); transition: transform .42s cubic-bezier(.3, 1.25, .5, 1), width .42s cubic-bezier(.3, 1.25, .5, 1), height .2s, opacity .2s }
body.ts.ts .hdr .topnav button.lm-nav-novo { animation: lmNavPop .4s cubic-bezier(.2, 1.4, .5, 1) }
@keyframes lmNavPop { 0% { transform: scale(.92); opacity: .5 } 100% { transform: none; opacity: 1 } }
body.ts.ts #main.lm-troca { animation: lmTroca .28s ease-out }
@keyframes lmTroca { 0% { opacity: 0; transform: translateY(8px) } 100% { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) {
  body.ts.ts .hdr .lm-nav-ind, body.ts.ts .hdr .topnav.lm-anim button { transition: none }
  body.ts.ts .hdr .topnav button.lm-nav-novo, body.ts.ts #main.lm-troca { animation: none }
}
body.ts.ts .hdr .actions { order: 3; grid-column: auto; grid-row: auto; margin-left: auto; display: flex; align-items: center; gap: 12px }
body.ts.ts #themeBtn, body.ts.ts .ts-hamb, body.ts.ts #tsVeu { display: none !important }
body.ts.ts .hdr .lm-corrigir { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 22px; font-size: 16.5px; border: 1px solid rgba(255,255,255,.55); border-radius: 12px; background: none; color: #fff; font: 500 14px/1 var(--f-sans); letter-spacing: 0; text-transform: none; cursor: pointer; transition: background .15s }
body.ts.ts .hdr .lm-corrigir:hover { background: rgba(255,255,255,.12) }
body.ts.ts .hdr .mebtn { display: inline-grid; place-items: center; width: 48px; height: 48px; min-width: 48px; min-height: 48px; font-size: 15px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--tinta); font: 700 12px/1 var(--f-sans); letter-spacing: .02em; text-transform: uppercase }
body.ts.ts .hdr .mebtn:hover { background: #E8ECF1; color: var(--tinta) }
body.ts.ts .ts-voltar { order: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; min-width: 0; padding: 0 12px 0 8px; border: 1px solid rgba(255,255,255,.4); border-radius: var(--lm-r); background: none; color: #fff; font: 500 13px/1 var(--f-sans); letter-spacing: 0; text-transform: none; grid-column: auto; grid-row: auto }
body.ts.ts .ts-voltar:hover { background: rgba(255,255,255,.12); color: #fff }
body.ts.ts .ts-voltar[hidden] { display: none }
body.ts.ts .menu { z-index: 80; top: calc(var(--lm-barra) - 6px); right: max(16px, 2.2vw); width: 300px; padding: 8px; border-radius: 10px; border: 1px solid var(--suave); background: #fff; color: var(--tinta); box-shadow: 0 12px 36px rgba(var(--tinta-rgb), .2); font-family: var(--f-sans) }
body.ts.ts .menu .who { padding: 12px 12px 12px; border-bottom: 1px solid var(--fino); margin-bottom: 6px }
body.ts.ts .menu .who b { display: block; font: 700 15px/1.3 var(--f-sans); color: var(--tinta) }
body.ts.ts .menu .who span { display: block; font-size: 13px; color: var(--texto-2); overflow-wrap: anywhere }
body.ts.ts .menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: var(--tinta); font: 500 14.5px/1.2 var(--f-sans); text-align: left; cursor: pointer }
body.ts.ts .menu button:hover { background: var(--mesa) }
body.ts.ts .menu button .ic, body.ts.ts .menu button svg { color: var(--azul-2); flex: none }
body.ts.ts .menu button[data-act="logout"] { margin-top: 4px; border-top: 1px solid var(--fino); border-radius: 0 0 8px 8px; padding-top: 12px }
body.ts.ts .menu button[data-act="mExcluirConta"] { color: var(--erro) !important; font-size: 13px }
body.ts.ts .menu button[data-act="mExcluirConta"] svg { color: var(--erro) }
body.ts.ts .menu .chip { margin-left: auto }
body.ts.ts #main { background: transparent; padding-top: 0; min-height: 50vh }
body.ts.ts .side { display: none !important }

/* ============================== RODAPÉ ============================== */
body.ts.ts .rodape { background: var(--tinta); color: #fff; min-height: 48px; padding: 14px max(16px, 2.2vw); gap: 6px 24px; border: 0 }
body.ts.ts .rodape-marca .ts-wm { display: inline; font: 700 15px/1 var(--f-sans); letter-spacing: -.01em; text-transform: lowercase; color: #fff }
body.ts.ts .rodape .rodape-links { gap: 0 20px }
body.ts.ts .rodape .rodape-links a { min-height: 32px; font: 400 13px/1 var(--f-sans); color: rgba(255,255,255,.82); text-decoration: none; letter-spacing: 0 }
body.ts.ts .rodape .rodape-links a + a::before { display: none }
body.ts.ts .rodape .rodape-ig { display: inline-flex; align-items: center; gap: 7px; color: #fff }
body.ts.ts .rodape .rodape-ig svg { width: 18px; height: 18px; flex: none }
body.ts.ts .rodape .rodape-links a:hover { color: #fff; text-decoration: underline; text-decoration-color: #fff }
body.ts.ts .rodape .rodape-cnpj { font-size: 11.5px; letter-spacing: 0; color: var(--apoio-escuro) }
body.ts.ts [data-caneta-cores] { display: none }

/* ============================== BOTÕES ============================== */
body.ts.ts .ts-pill, body.ts.ts .btn { border-radius: var(--lm-r); letter-spacing: 0; text-transform: none; font-family: var(--f-sans); font-weight: 600 }
body.ts.ts .ts-pill { min-height: 40px; padding: 0 16px; border: 1px solid var(--suave); background: #fff; color: var(--tinta); font-size: 14px; gap: 8px }
body.ts.ts .ts-pill:hover, body.ts.ts .ts-pill.line:hover { background: var(--mesa); color: var(--tinta); border-color: var(--apoio-escuro) }
body.ts.ts .ts-pill.rosa, body.ts.ts .ts-pill.preto { background: var(--azul); border-color: var(--azul); color: #fff }
body.ts.ts .ts-pill.rosa:hover, body.ts.ts .ts-pill.preto:hover { background: var(--azul-h); border-color: var(--azul-h); color: #fff; filter: none }
body.ts.ts .ts-pill.perigo { border-color: var(--suave); color: var(--rosa-escuro) }
body.ts.ts .ts-pill.perigo:hover { background: var(--rosa-escuro); border-color: var(--rosa-escuro); color: #fff }
body.ts.ts .btn.primary, body.ts.ts .btn.lime { background: var(--azul); border-color: var(--azul); color: #fff }
body.ts.ts .btn.primary:hover, body.ts.ts .btn.lime:hover { background: var(--azul-h); border-color: var(--azul-h) }
body.ts.ts .ts-mais { border-radius: var(--lm-r); background: var(--azul); color: #fff; width: 40px; height: 40px }
body.ts.ts .ts-bolha, body.ts.ts .ts-rarr { border-radius: var(--lm-r); border-width: 1px }
body.ts.ts .ts-bolha .bf, body.ts.ts .ts-rarr .bf { border-radius: calc(var(--lm-r) - 1px); background: var(--azul) }

/* ============================== TÍTULOS E PÁGINAS (Disciplina, Cursos, Passos) ============================== */
body.ts.ts .ts-tit, body.ts.ts .ts-ini .disp, body.ts.ts .ts-ctit, body.ts.ts .ts-dtit, body.ts.ts .ts-rtit, body.ts.ts .ts-rt { font-family: var(--f-sans) !important; font-weight: 700 !important; letter-spacing: -.015em; line-height: 1.12 }
body.ts.ts .ts-tit { font-size: clamp(26px, 3.2vw, 36px); color: var(--ink-titulo) }
body.ts.ts .ts-tit.m { font-size: clamp(22px, 2.6vw, 28px) } body.ts.ts .ts-tit.s { font-size: clamp(18px, 2vw, 22px) }
body.ts.ts .ts-tit i, body.ts.ts .ts-ini .serif { font-style: normal; font-weight: 400; font-size: .62em; color: var(--texto-2); letter-spacing: 0; display: block; margin: 0 0 4px }
body.ts.ts .ts-tit b { font-weight: 700 }
body.ts.ts .ts-pg { max-width: 1280px; padding: 0 max(16px, 2.2vw) 40px }
body.ts.ts .ts-pg > .ts-tit, body.ts.ts .ts-sech { margin-top: 28px }
body.ts.ts .ts-sub { font: 400 14px/1.5 var(--f-sans); letter-spacing: 0; color: var(--texto-2) }
body.ts.ts .ts-tag { border: 1px solid var(--suave); border-radius: 999px; background: var(--mesa); color: var(--texto-2); font: 500 11.5px/1.4 var(--f-sans); letter-spacing: 0; text-transform: none; padding: 2px 10px }
body.ts.ts .ts-ccard, body.ts.ts .ts-dcard, body.ts.ts .ts-dnova, body.ts.ts .ts-card, body.ts.ts .ts-pas, body.ts.ts .ts-avpainel { border: 1px solid var(--suave); border-radius: 8px; background: #fff; color: var(--tinta); box-shadow: none; transform: none }
body.ts.ts .ts-ccard:hover, body.ts.ts .ts-dcard:hover { transform: none; background: var(--mesa) }
body.ts.ts .ts-ccard { background: #fff; color: var(--tinta) } body.ts.ts .ts-ccard small { color: var(--texto-2) }
body.ts.ts .ts-ccard.novo { background: var(--mesa); border-style: dashed; color: var(--tinta) }
body.ts.ts .ts-ccard .ts-dn { color: var(--texto-3) } body.ts.ts .ts-ccard .ts-bolha { border-color: var(--suave); color: var(--tinta) }
body.ts.ts .ts-bolhas i { border-color: var(--suave); color: var(--tinta); border-radius: 4px } body.ts.ts .ts-bolhas i.on { background: var(--azul); border-color: var(--azul); color: #fff }
body.ts.ts .ts-rowx { background: var(--tinta); color: #fff; border-radius: 8px }
body.ts.ts .ts-row, body.ts.ts .ts-lista, body.ts.ts .ts-rows, body.ts.ts .ts-rows.lista { border-color: var(--suave) }
body.ts.ts .ts-row { padding: 16px 0 } body.ts.ts .ts-row .ts-rtit { font-size: clamp(18px, 2vw, 24px) }
body.ts.ts .ts-row:hover .ts-rtit, body.ts.ts .ts-rowx:hover .ts-rt { text-decoration: none; color: var(--azul-2) } body.ts.ts .ts-rowx:hover .ts-rt { color: #fff; text-decoration: underline }
body.ts.ts .ts-pb i { border-radius: var(--lm-r); border-width: 1px; font-weight: 600 }
body.ts.ts .ts-pb.feito i { background: var(--azul); border-color: var(--azul); color: #fff }
body.ts.ts .ts-pb.atual i { background: #fff; color: var(--tinta); border-color: var(--tinta); border-width: 2px; box-shadow: none }
body.ts.ts .ts-pb span { letter-spacing: .04em; font-size: 11px }
body.ts.ts .ts-passos::before { background: var(--suave); height: 1px }
body.ts.ts .tabs.ts-tabs button { border-radius: 0; text-transform: none; letter-spacing: 0; font-family: var(--f-sans) }
body.ts.ts .ts-ch, body.ts.ts .ts-let { font-family: var(--f-sans) }
body.ts.ts .ts-let { background: var(--azul); color: #fff; border-radius: 4px }
body.ts.ts .ts-faixa { background: var(--tinta) }

/* ============================== TELA PROVAS: EXPLORADOR DE PASTAS ============================== */
.lm-pg { max-width: 1380px; margin: 0 auto; padding: 22px max(16px, 2.2vw) 40px }
.lm-cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px }
.lm-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 600 11px/1 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-3) }
.lm-cab h1 { margin: 0; font: 700 clamp(26px, 3vw, 34px)/1.1 var(--f-sans); letter-spacing: -.02em; color: var(--ink-titulo) }
.lm-cab-b { display: flex; flex-wrap: wrap; gap: 10px }
.lm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--suave); border-radius: var(--lm-r); background: #fff; color: var(--tinta); font: 600 14px/1 var(--f-sans); letter-spacing: 0; text-transform: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s }
.lm-btn svg { flex: none }
.lm-btn:hover:not(:disabled) { background: var(--mesa); border-color: var(--apoio-escuro) }
.lm-btn:disabled { color: var(--apoio-escuro); background: var(--mesa); border-color: var(--fino); cursor: not-allowed }
.lm-btn.pri { background: var(--azul); border-color: var(--azul); color: #fff }
.lm-btn.pri:hover:not(:disabled) { background: var(--azul-h); border-color: var(--azul-h) }
.lm-btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px }
.lm-janela { margin-top: 16px; border: 1px solid var(--suave); border-radius: 8px; background: #fff; overflow: hidden }
.lm-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; padding: 10px 14px; border-bottom: 1px solid var(--fino); background: #fff }
.lm-barra .gap { flex: 1 }
.lm-seg { display: inline-flex; padding: 2px; border: 1px solid var(--fino); border-radius: var(--lm-r); background: var(--mesa) }
.lm-seg button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 4px; background: none; color: var(--texto-2); font: 500 13px/1 var(--f-sans); cursor: pointer }
.lm-seg button[aria-pressed="true"] { background: #fff; color: var(--tinta); font-weight: 600; box-shadow: 0 0 0 1px var(--suave) }
.lm-busca { position: relative; display: block; width: min(300px, 100%) }
.lm-busca svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--texto-3); pointer-events: none }
.lm-busca input { width: 100%; box-sizing: border-box; min-height: 40px; padding: 0 12px 0 34px; border: 1px solid var(--suave); border-radius: var(--lm-r); background: #fff; color: var(--tinta); font: 400 14px/1 var(--f-sans) }
.lm-busca input::placeholder { color: var(--texto-3) }
.lm-busca input:focus { outline: 2px solid var(--azul-2); outline-offset: 0; border-color: var(--azul-2) }
.lm-corpo { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: max(480px, calc(100vh - 230px)) }
.lm-arvore { padding: 14px 8px; border-right: 1px solid var(--fino); background: var(--mesa); overflow: auto; max-height: none }
.lm-arvore h2 { margin: 2px 10px 8px; font: 600 11px/1 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-3) }
.lm-no { display: flex; align-items: center; gap: 2px; min-height: 34px; border-radius: var(--lm-r); padding-right: 8px; cursor: pointer; color: var(--tinta); font: 500 14px/1.2 var(--f-sans) }
.lm-no:hover { background: #fff }
/* guias pontilhadas da árvore (├ e └, com o tracinho até a seta), como no Explorador antigo */
.lm-no { position: relative }
.lm-gv, .lm-gc { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dotted var(--guia); pointer-events: none }
.lm-gc.ult { bottom: 50% }
.lm-gc::after { content: ''; position: absolute; left: 1px; top: 100%; width: 12px; border-top: 1px dotted var(--guia) }
.lm-gc:not(.ult)::after { top: 50% }
.lm-no.sel { background: #fff; box-shadow: 0 0 0 1px var(--suave) }
.lm-no.sel .lm-pasta-i { color: var(--rosa) }
.lm-no .seta { display: inline-grid; place-items: center; width: 22px; height: 28px; flex: none; border: 0; background: none; color: var(--texto-2); cursor: pointer; border-radius: 4px; padding: 0 }
.lm-no .seta:hover { background: var(--fino) }
.lm-no .seta svg { transition: transform .15s }
.lm-no .seta[aria-expanded="true"] svg { transform: rotate(90deg) }
.lm-no .vazio { display: inline-block; width: 22px; flex: none }
.lm-no .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: 4px }
.lm-no .lm-pasta-i { flex: none; color: var(--texto-2) }
.lm-no.dnd, .lm-lin.dnd, .lm-ic.dnd { background: var(--sel); box-shadow: 0 0 0 2px var(--azul-2) }
.lm-meio { display: flex; flex-direction: column; min-width: 0 }
.lm-cam { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--fino); font: 500 14px/1.2 var(--f-sans); color: var(--texto-2); min-height: 52px; box-sizing: border-box }
.lm-cam .sobe { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--lm-r); background: none; color: var(--tinta); cursor: pointer }
.lm-cam .sobe:hover:not(:disabled) { background: var(--mesa) }
.lm-cam .sobe:disabled { color: var(--apoio-escuro); cursor: default }
.lm-cam ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0; padding: 0; list-style: none; min-width: 0 }
.lm-cam li { display: inline-flex; align-items: center; min-width: 0 }
.lm-cam li + li::before { content: '›'; margin: 0 6px; color: var(--apoio-escuro) }
.lm-cam li button { border: 0; background: none; padding: 4px 6px; border-radius: 4px; color: var(--texto-2); font: inherit; cursor: pointer; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.lm-cam li button:hover { background: var(--mesa); color: var(--tinta) }
.lm-cam li:last-child button { color: var(--tinta); font-weight: 600; cursor: default; background: none }
.lm-lista { flex: 1; overflow: auto; max-height: 72vh }
.lm-th, .lm-lin { display: grid; grid-template-columns: minmax(0, 1fr) 128px 64px 100px; align-items: center; gap: 12px; padding: 0 16px }
.lm-th { position: sticky; top: 0; z-index: 1; min-height: 38px; border-bottom: 1px solid var(--fino); background: #fff; font: 600 11px/1 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--texto-3) }
.lm-lin { min-height: 50px; border-bottom: 1px solid var(--fino); background: #fff; cursor: default; color: var(--tinta); font: 400 14px/1.3 var(--f-sans); outline-offset: -2px }
.lm-lin:hover { background: var(--mesa) }
.lm-lin.sel { background: var(--sel) }
.lm-lin .nome { display: flex; align-items: center; gap: 10px; min-width: 0 }
.lm-lin .nome span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.lm-lin .nome svg { flex: none; color: var(--texto-2) }
/* pastas e arquivos: ícones amarelos/Word/PDF (limpo.js), com as cores dentro do SVG */
.lm-lin.e-pasta { background: var(--mesa); font-weight: 600 }
.lm-lin.e-pasta:hover { background: var(--sel) }
.lm-lin.e-pasta .mut { color: var(--texto-2) }
.lm-grp-t { display: flex; align-items: center; gap: 10px; min-height: 28px; padding: 6px 16px 0; font: 600 11px/1 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--texto-3); background: #fff }
.lm-grp.g-pastas .lm-grp-t { background: var(--mesa) }
.lm-grp.g-pastas { border-bottom: 2px solid var(--suave) }
.lm-grp.g-provas .lm-grp-t { padding-top: 10px }
.lm-lin .mut { color: var(--texto-2); font-size: 13px }
.lm-sit { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border: 1px solid var(--suave); border-radius: 999px; background: var(--mesa); color: var(--texto-2); font: 500 12px/1.5 var(--f-sans); white-space: nowrap }
.lm-sit i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; box-sizing: border-box }
.lm-sit.ok { border-color: var(--ok-traco); background: var(--ok-fundo); color: var(--ok) }
.lm-sit.ok i { background: currentColor }
.lm-sit.ras i { border-style: dashed }
.lm-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; padding: 14px }
.lm-ic { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 10px; border: 1px solid transparent; border-radius: 8px; background: none; text-align: center; color: var(--tinta); font: 500 13px/1.3 var(--f-sans); cursor: default }
.lm-ic:hover { background: var(--mesa) }
.lm-ic.sel { background: var(--sel); border-color: var(--suave) }
.lm-ic.ic-pasta { background: var(--mesa); border-color: var(--fino); font-weight: 600 }
.lm-ic.ic-pasta:hover { background: var(--sel) }
.lm-ic.ic-pasta.sel { background: var(--sel); border-color: var(--azul-2) }
.lm-ic span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere }
.lm-vazio { display: grid; place-items: center; gap: 4px; padding: 48px 20px; text-align: center; color: var(--texto-2); font: 400 14px/1.5 var(--f-sans) }
.lm-vazio b { color: var(--tinta); font-size: 16px }
.lm-rod { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 16px; border-top: 1px solid var(--fino); background: var(--mesa); font: 400 13px/1 var(--f-sans); color: var(--texto-2) }
.lm-prev { padding: 20px 18px; border-left: 1px solid var(--fino); background: #fff; min-width: 0 }
.lm-prev-v { display: grid; place-items: center; align-content: center; gap: 10px; min-height: 280px; text-align: center }
.lm-prev-v .ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--mesa); color: var(--texto-2) }
.lm-prev h3 { margin: 0; font: 700 16px/1.3 var(--f-sans); color: var(--tinta); overflow-wrap: anywhere }
.lm-prev p { margin: 0; font: 400 13.5px/1.55 var(--f-sans); color: var(--texto-2) }
.lm-prev .cam { margin: 0 0 4px; font: 600 11px/1.2 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--texto-3) }
.lm-prev dl { margin: 16px 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font: 400 13.5px/1.4 var(--f-sans) }
.lm-prev dt { color: var(--texto-3) } .lm-prev dd { margin: 0; color: var(--tinta); font-weight: 500; text-align: right }
.lm-prev .acoes { display: grid; gap: 8px }
.lm-prev .acoes .lm-btn { width: 100% }
.lm-exemplo { padding: 14px 16px; margin-top: 16px; border: 1px solid var(--fino); border-radius: 8px; background: var(--mesa); color: var(--texto-2); font: 400 13.5px/1.5 var(--f-sans); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px }
.lm-exemplo p { margin: 0; text-align: justify; max-width: 70ch }
.lm-dica { margin: 12px 2px 0; color: var(--texto-3); font: 400 12.5px/1.5 var(--f-sans) }
.lm-dica kbd { padding: 1px 6px; border: 1px solid var(--suave); border-bottom-width: 2px; border-radius: 4px; background: #fff; font: 500 11.5px/1.4 var(--f-sans); color: var(--texto-2) }

/* ============================== PASTAS E ARQUIVOS (ícones amarelos, no padrão do Explorador; as cores vão dentro do SVG) ============================== */
.lm-pf, .lm-aq { flex: none; display: block }
.lm-niv { display: inline-block; flex: none; padding: 2px 6px; border: 1px solid var(--fino); border-radius: 4px; background: #fff; color: var(--texto-3); font: 600 10px/1.2 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap }
.lm-ic .lm-niv { margin-top: -4px; white-space: normal; text-align: center }
.lm-lin.sel .lm-niv, .lm-ic.sel .lm-niv { border-color: var(--suave) }
/* etiqueta do arquivo de prova: "editável" (documento) ou "pronta · com cartão-resposta" (PDF) */
.lm-niv-arq { text-transform: none; letter-spacing: 0; font-size: 11px; color: var(--azul-2); border-color: var(--sel) }
.lm-niv-arq.ok { color: var(--ok); border-color: var(--ok-traco) }
@media (max-width: 700px) { .lm-lin .lm-niv-arq { display: none } } /* no celular, o ícone e a situação já dizem o estado */

/* ============================== DENTRO DA DISCIPLINA: PASTAS, NÃO ABAS ============================== */
.lm-disc .lm-cab { align-items: flex-start }
.lm-dmeta { margin: 8px 0 0; font: 400 14.5px/1.5 var(--f-sans); color: var(--texto-2) }
.lm-dmeta .ts-tag { margin-left: 6px }
.lm-dsec { margin-top: 26px }
.lm-dh2 { margin: 0 0 12px; font: 600 11px/1 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-3) }
.lm-dpg { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px }
.lm-dp { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 168px; padding: 20px 14px 16px; border: 1px solid var(--fino); border-radius: 8px; background: var(--mesa); color: var(--tinta); text-align: center; cursor: pointer; transition: background .15s, border-color .15s }
.lm-dp:hover { background: var(--sel); border-color: var(--suave) }
.lm-dpn { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.lm-dpn b { font: 600 15px/1.3 var(--f-sans); text-wrap: balance; overflow-wrap: anywhere }
.lm-dpn small { font: 400 13px/1.4 var(--f-sans); color: var(--texto-2) }
.lm-dpg.peq { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) }
.lm-dpg.peq .lm-dp { flex-direction: row; min-height: 0; padding: 12px 14px; gap: 12px; text-align: left }
.lm-dpg.peq .lm-dpn { align-items: flex-start }
.lm-dcam.lm-cam { padding: 20px 0 0; border: 0; min-height: 0 }
.lm-dcam.lm-cam li button { padding-left: 0 }
.lm-dcam.lm-cam li + li button { padding-left: 6px }
.lm-dtop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 8px }
.lm-dtop h1 { margin: 0; font: 700 clamp(22px, 2.4vw, 28px)/1.15 var(--f-sans); letter-spacing: -.02em; color: var(--ink-titulo) }
.lm-dtop .lm-eyebrow { margin-bottom: 4px }
.lm-dvolta { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 2px; border: 0; background: none; color: var(--azul-2); font: 600 14px/1.3 var(--f-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer }
.lm-dvolta:hover { color: var(--tinta) }
.lm-dchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px }
.lm-dchip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px 0 10px; border: 1px solid var(--suave); border-radius: 999px; background: #fff; color: var(--tinta); font: 500 13.5px/1.2 var(--f-sans); cursor: pointer; text-align: left }
.lm-dchip:hover { background: var(--mesa) }
.lm-dchip.on { background: var(--tinta); border-color: var(--tinta); color: #fff; font-weight: 600; cursor: default }
.lm-dcorpo { min-width: 0 }
/* a pasta Provas e cartões-resposta: as provas nas linhas do explorador */
.lm-dj .lm-lin { cursor: default }
.lm-dj .lm-abre { flex: 0 1 auto; min-width: 0; max-width: 100%; padding: 4px 0; border: 0; background: none; color: var(--tinta); font: 600 14px/1.3 var(--f-sans); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.lm-dj .lm-abre:hover { color: var(--azul-2); text-decoration: underline; text-underline-offset: 3px }
.lm-dj .lm-rod { padding: 8px 16px }
.lm-dj .lm-vazio { padding: 36px 20px }
@media (max-width: 700px) {
  .lm-dpg { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .lm-dpg.peq { grid-template-columns: minmax(0, 1fr) }
  .lm-dp { padding: 16px 10px 12px; min-height: 0 }
  .lm-dpn b { font-size: 14px }
  .lm-dchip span { display: none }
  .lm-dchip { padding: 0 10px }
  .lm-dchip.on span { display: inline }
  /* no celular, o nome fica ao lado do ícone e as ações da prova descem para uma segunda linha dentro da própria linha */
  .lm-dj .lm-lin .nome { flex-wrap: wrap; row-gap: 6px }
  .lm-dj .lm-lin .lm-abre { flex: 1 1 0 }
  .lm-dj .lm-lin .lm-acoes { flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-start; margin-left: 0; gap: 4px; overflow: visible; white-space: normal }
}

/* ============================== MENU DE CONTEXTO (botão direito), um só para todas as pastas e arquivos ============================== */
.lm-ctx { position: fixed; z-index: 90; min-width: 200px; max-width: min(300px, calc(100vw - 8px)); padding: 6px; border: 1px solid var(--suave); border-radius: 10px; background: #fff; color: var(--tinta); box-shadow: 0 12px 36px rgba(var(--tinta-rgb), .2); font-family: var(--f-sans) }
.lm-ctx button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 38px; padding: 6px 10px; border: 0; border-radius: 6px; background: none; color: var(--tinta); font: 500 14px/1.2 var(--f-sans); text-align: left; cursor: pointer }
.lm-ctx button:hover, .lm-ctx button:focus-visible { background: var(--mesa); outline: none }
.lm-ctx button.del { color: var(--rosa-escuro) }
.lm-ctx button.del:hover, .lm-ctx button.del:focus-visible { background: rgba(var(--erro-rgb), .08) }
.lm-ctx kbd { flex: none; padding: 1px 6px; border: 1px solid var(--fino); border-bottom-width: 2px; border-radius: 4px; background: #fff; color: var(--texto-3); font: 500 11px/1.4 var(--f-sans) }
.lm-ctx button.del kbd { color: var(--rosa-escuro); border-color: rgba(var(--erro-rgb), .3) }

/* Desfazer (aviso com botão) */
.lm-desfazer { margin-left: 12px; padding: 0 0 0 12px; border: 0; border-left: 1px solid rgba(255,255,255,.4); background: none; color: #fff; font: 600 13px/1 var(--f-sans); text-decoration: underline; cursor: pointer }

@media (max-width: 1100px) {
  body.ts.ts .hdr .topnav button { min-height: 46px; padding: 0 16px; font-size: 16px }
  body.ts.ts .hdr .lm-corrigir { min-height: 44px; padding: 0 16px; font-size: 15px }
  .lm-corpo { grid-template-columns: 220px minmax(0, 1fr) }
  .lm-prev { display: none }
}
@media (max-width: 820px) {
  .lm-corpo { grid-template-columns: minmax(0, 1fr) }
  .lm-arvore { display: none }
  .lm-th, .lm-lin { grid-template-columns: minmax(0, 1fr) 104px 56px }
  .lm-th .alt, .lm-lin .alt { display: none }
  .lm-lista { max-height: none }
}

/* ============================== PÁGINAS PÚBLICAS (busca/SEO, aluno, prova, privacidade): barra e rodapé azul-marinho ============================== */
body.ts.ts .seo-top { background: var(--tinta); color: #fff; border-bottom: 0; padding-block: 10px; min-height: var(--lm-barra); box-sizing: border-box }
body.ts.ts .seo-brand { color: #fff; font: 700 20px/1 var(--f-sans); letter-spacing: -.01em }
body.ts.ts .seo-brand b { color: #FF5A5A }
body.ts.ts .seo-btn { background: #fff; color: var(--tinta); border-radius: var(--lm-r); font: 600 14px/1 var(--f-sans); padding: 11px 16px; letter-spacing: 0 }
body.ts.ts .seo-btn:hover { background: var(--sel) }
body.ts.ts .seo-btn.big, body.ts.ts .seo-main .seo-btn { background: var(--azul); color: #fff }
body.ts.ts .seo-main .seo-btn:hover { background: var(--azul-h) }
body.ts.ts .seo-btn.big { padding: 14px 22px; font-size: 16px }
body.ts.ts .seo-main h1, body.ts.ts .seo-main h2 { font-family: var(--f-sans); font-weight: 700; color: var(--ink-titulo) }
body.ts.ts .seo-main p, body.ts.ts .seo-main li { text-align: justify; hyphens: auto }
body.ts.ts .seo-lead { text-align: left }
body.ts.ts .seo-main details { border-radius: 8px; background: #fff; border-color: var(--suave) }
body.ts.ts .seo-more a { color: var(--azul-2) }
body.ts.ts .seo-foot, body.ts.ts .lp-foot { background: var(--tinta); color: #fff }
body.ts.ts .seo-foot a, body.ts.ts .lp-foot a { color: #fff; text-decoration-color: var(--apoio-escuro) }
body.ts.ts .seo-foot a:hover, body.ts.ts .lp-foot a:hover { text-decoration-color: #fff }
body.ts.ts .seo-foot :focus-visible, body.ts.ts .lp-foot :focus-visible { outline-color: #fff }
body.ts.ts .seo-foot [data-caneta-cores], body.ts.ts .lp-foot [data-caneta-cores] { display: none }

/* ============================== CELULAR: BARRA EM DUAS LINHAS (logo e ações; navegação em texto embaixo) ============================== */
@media (max-width: 820px) {
  body.ts.ts .hdr-in { flex-wrap: wrap; gap: 0 12px; height: auto; min-height: 0; padding-top: 8px; padding-bottom: 6px }
  body.ts.ts .hdr .brand .logo { width: 36px; height: 30px }
  body.ts.ts .hdr .brand .wm { font-size: 24px }
  body.ts.ts .hdr .mebtn { width: 40px; height: 40px; min-width: 40px; min-height: 40px; font-size: 13px }
  body.ts.ts .hdr .topnav { order: 4; flex: 0 0 100%; justify-content: space-between; gap: 0; margin-top: 2px }
  body.ts.ts .hdr .topnav button { min-height: 36px; padding: 0 2px; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; border-radius: 6px }
  body.ts.ts .hdr .topnav button[aria-current="page"] { background: none; box-shadow: inset 0 -2px 0 #FF5A5A }
  body.ts.ts .hdr .lm-nav-ind { border-radius: 6px; background: none; box-shadow: inset 0 -2px 0 #FF5A5A }
  body.ts.ts .hdr .lm-corrigir span { display: none }
  body.ts.ts .hdr .lm-corrigir { width: 40px; min-height: 40px; padding: 0; justify-content: center }
  body.ts.ts .ts-voltar span { display: none }
  body.ts.ts .ts-voltar { width: 36px; padding: 0; justify-content: center }
  body.ts.ts .bnav { display: none !important }
  body.ts.ts .bnav-antiga { display: grid !important; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset: auto 0 0 0; z-index: 40; height: calc(56px + env(safe-area-inset-bottom, 0px)); padding: 0 0 env(safe-area-inset-bottom, 0px); background: #fff; border-top: 1px solid var(--suave); box-shadow: none }
  body.ts.ts .bnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--texto-2); font: 500 11px/1 var(--f-sans); letter-spacing: 0; text-transform: none }
  body.ts.ts .bnav button[aria-current="page"] { color: var(--tinta); font-weight: 700 }
  body.ts.ts .bnav button .ic, body.ts.ts .bnav button svg { width: 22px; height: 22px; color: var(--texto-2) !important; stroke: currentColor !important }
  body.ts.ts .bnav button[aria-current="page"] svg, body.ts.ts .bnav button[aria-current="page"] .ic { color: var(--tinta) !important }
  .lm-barra #lmRen, .lm-barra #lmExc { display: none }
  .lm-barra .gap { display: none }
  .lm-barra .lm-seg { margin-left: auto }
  .lm-barra .lm-busca { order: 5; width: 100% }
  body.ts.ts .rodape { padding-bottom: 14px }
  .lm-cab-b .lm-btn { flex: 1 }
}
/* Auxiliares do explorador (escolha de destino, menu de ações, caminho na prévia) */
.lm-escolha { display: grid; gap: 8px; max-height: 60vh; overflow: auto; padding: 2px }
.lm-escolha .lm-btn { justify-content: flex-start; width: 100%; text-align: left }
.lm-gr { margin: 10px 2px 0; font: 600 11px/1 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-3) }
.lm-gr:first-child { margin-top: 0 }
.lm-acoes { display: inline-flex; gap: 4px; margin-left: auto; flex: none }
.lm-mini { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 10px; border: 1px solid var(--suave); border-radius: 6px; background: #fff; color: var(--tinta); font: 500 12.5px/1 var(--f-sans); cursor: pointer }
.lm-mini:hover { background: var(--mesa); border-color: var(--azul) }
.lm-mini.del:hover { color: var(--erro); border-color: var(--erro) }
.lm-mini svg { color: var(--texto-2) } .lm-mini.del:hover svg { color: var(--erro) }
.lm-lin.e-pasta .lm-mini { background: #fff }
@media (max-width: 700px) { .lm-mini span { display: none } .lm-mini { padding: 0 8px } }
.lm-mais { display: none; margin-left: 0; flex: none; width: 34px; height: 34px; align-items: center; justify-content: center; border: 0; border-radius: var(--lm-r); background: none; color: var(--texto-2); cursor: pointer }
.lm-mais:hover { background: var(--fino); color: var(--tinta) }
.lm-lin small.cam { display: block; margin-top: 2px; color: var(--texto-3); font: 400 12px/1.2 var(--f-sans); letter-spacing: 0; text-transform: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
body.ts.ts .ts-passos { display: none }
@media (max-width: 1100px) { .lm-mais { display: inline-flex } }
@media (pointer: coarse) { .lm-mais { display: inline-flex } }

@media (prefers-reduced-motion: reduce) { .lm-no .seta svg, .lm-btn { transition: none } }

/* marcações e detalhes vermelhos que sobraram das telas antigas */
body.ts.ts .bol.on { background: var(--azul); border-color: var(--azul); color: #fff }
body.ts.ts .lat-handle { background: var(--azul) }

/* dentro da disciplina (Rafael, 5/11/2026: "lado esquerdo, como nos docs"): as pastas numa lateral à esquerda e o conteúdo à direita */
.lm-dlay { margin-top: 18px }
.lm-dgrid { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 460px }
.lm-dnav { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; border-right: 1px solid var(--fino); background: var(--mesa) }
.lm-dnav-g { display: flex; flex-direction: column; gap: 2px; margin-left: 14px; padding-left: 6px; border-left: 1px dotted var(--guia, var(--suave)) }
.lm-dnav-g + .lm-dnav-g { margin-top: 8px }
.lm-dni { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 4px 10px; border: 0; border-radius: 8px; background: none; color: var(--tinta); font: 500 14px/1.25 var(--f-sans); text-align: left; cursor: pointer }
.lm-dni svg { flex: none } .lm-dni span { min-width: 0; overflow-wrap: anywhere }
.lm-dni:hover { background: var(--folha, #fff) }
.lm-dni.on { background: var(--folha, #fff); box-shadow: 0 0 0 1px var(--suave); font-weight: 600 }
.lm-dni.raiz { font-weight: 600 }
.lm-dconteudo { min-width: 0; padding: 16px 20px 20px }
.lm-dconteudo .lm-janela { margin-top: 0 }
.lm-dlista { display: flex; flex-direction: column; max-width: 720px }
.lm-drow { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 10px; border: 0; border-bottom: 1px solid var(--fino); border-radius: 0; background: none; color: var(--tinta); text-align: left; cursor: pointer }
.lm-drow:hover { background: var(--mesa) }
.lm-drow .lm-dpn { flex: 1; align-items: flex-start }
.lm-drow > svg:last-child { flex: none; color: var(--texto-3) }
.lm-dlista-sep { height: 14px }
.lm-disc .lm-dtop .lm-dmeta { margin-top: 4px }
@media (max-width: 820px) {
  .lm-dgrid { grid-template-columns: minmax(0, 1fr); min-height: 0 }
  .lm-dnav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--fino); padding: 8px }
  .lm-dnav-g { flex-direction: row; margin: 0; padding: 0; border: 0; gap: 2px } .lm-dnav-g + .lm-dnav-g { margin: 0 }
  .lm-dni { width: auto; flex: none }
  .lm-dconteudo { padding: 12px }
}
@media (max-width: 820px) { .lm-dni span { white-space: nowrap } }

/* Janela "Arquivos para imprimir" (pdfKit): um arquivo por cor, os três lado a lado, sem rolagem */
.kit-nota { margin: 2px 0 12px; font-size: 13px; color: var(--texto-2); text-align: justify }
.kit-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px }
.kit-grade.kit-um { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin: 0 auto }
.kit-dl { --k: var(--azul); position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px 12px; border: 1.5px solid var(--suave); border-top: 6px solid var(--k); border-radius: 10px; background: var(--folha); color: var(--ink); font: inherit; text-align: center; cursor: pointer; min-width: 0 }
.kit-dl.kit-cartao { --k: var(--ok) } .kit-dl.kit-disc { --k: var(--ambar) }
.kit-dl .kit-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--k); color: var(--branco) }
.kit-dl .kit-num { position: absolute; top: 8px; left: 10px; font-weight: 700; font-size: 13px; color: var(--k) }
.kit-dl b { font-size: 15px; line-height: 1.2 }
.kit-dl small { font-size: 12px; color: var(--texto-2); min-height: 2.4em; line-height: 1.2 }
.kit-dl .kit-acao { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; padding: 7px 12px; border-radius: 8px; background: var(--mesa); color: var(--texto-2); font-size: 13px; font-weight: 600 }
.kit-dl.pronto .kit-acao { background: var(--k); color: var(--branco) }
.kit-dl.pronto:hover { border-color: var(--k) }
.kit-dl.baixado .kit-acao { background: var(--mesa); color: var(--k) }
.kit-dl:disabled { cursor: default; opacity: .62 }
.kit-dl:disabled .kit-ic { background: var(--suave) }
@media (max-width: 560px) {
  .kit-grade { grid-template-columns: 1fr; gap: 8px }
  .kit-dl { flex-direction: row; text-align: left; padding: 10px 12px; border-top-width: 1.5px; border-left: 6px solid var(--k); gap: 10px }
  .kit-dl .kit-ic { width: 38px; height: 38px; flex: none }
  .kit-dl .kit-num { display: none }
  .kit-dl b { flex: 1; font-size: 14px } .kit-dl small { display: none }
  .kit-dl .kit-acao { padding: 6px 10px; margin: 0 }
}
.kit-dl.kit-disc .kit-ic, .kit-dl.kit-disc.pronto .kit-acao { color: var(--ink) }
.kit-dl .kit-acao, .kit-dl b { white-space: nowrap }
/* Pasta da prova (A.pastaProva): os arquivos da prova, cada um na sua cor; clicar abre o PDF */
.pp-grade { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 4px }
.pp-arq { --k: var(--azul); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px 12px; border: 1.5px solid var(--suave); border-top: 6px solid var(--k); border-radius: 10px; background: var(--folha); color: var(--ink); font: inherit; text-align: center; cursor: pointer; min-width: 0 }
.pp-arq.kit-cartao { --k: var(--ok) } .pp-arq.kit-disc { --k: var(--ambar) } .pp-arq.kit-gab { --k: var(--tinta) }
.pp-arq .kit-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--k); color: var(--branco) }
.pp-arq.kit-disc .kit-ic { color: var(--ink) }
.pp-arq b { font-size: 14px; line-height: 1.2 } .pp-arq small { font-size: 12px; color: var(--texto-2); line-height: 1.2 }
.pp-arq:hover:not(:disabled) { border-color: var(--k) }
.pp-arq:disabled { opacity: .55; cursor: default } .pp-arq:disabled .kit-ic { background: var(--suave) }
.pp-acoes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 14px }
@media (max-width: 640px) { .pp-grade { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
/* Provas extras na pasta da prova (12/11/2026) */
.pp-extra { margin-top: 14px; padding: 12px 14px; border: 1.5px dashed var(--suave); border-radius: 10px; background: var(--mesa) }
.pp-extra-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px } .pp-extra-h b { font-size: 14px } .pp-extra-h span { font-size: 12.5px; color: var(--texto-2) } .pp-extra-h .btn { margin-left: auto }
.pp-extra-l { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px }
.pp-extra-i { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--suave); border-radius: 8px; background: var(--folha); color: var(--ink); font: 500 13px/1.2 var(--f-sans); cursor: pointer }
.pp-extra-i:hover { border-color: var(--azul); color: var(--azul) }
.pe-ok { margin: 6px 0 0; font-size: 13px; color: var(--ok) }
.pe-feito { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 8px; padding: 12px 14px; border-radius: 10px; background: var(--mesa); color: var(--ink); font-size: 14.5px; line-height: 1.35 } .pe-feito svg { color: var(--ok); flex: none; margin-top: 1px }

/* Pastas: Ícones grandes · Ícones pequenos · Lista (como no Explorador do Windows) */
.lm-grade.peq { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)) }
.lm-grade.peq .lm-ic { padding: 10px 6px; gap: 4px } .lm-grade.peq .lm-ic svg { width: 30px; height: 30px } .lm-grade.peq .lm-ic span { font-size: 12.5px } .lm-grade.peq .lm-niv { display: none }
/* modo Lista: uma linha por item, ocupando toda a largura da área branca; com muitos itens, a área rola para baixo (#lmLista) */
.lm-lst { display: flex; flex-direction: column; gap: 2px; width: 100%; box-sizing: border-box; padding: 10px 14px }
.lm-li { display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; min-width: 0; padding: 5px 8px; border-radius: 6px; cursor: default; color: var(--ink); font-size: 14px }
.lm-li > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.lm-li svg { flex: none }
.lm-li:hover { background: var(--mesa) } .lm-li.sel { background: var(--mesa); box-shadow: inset 0 0 0 1.5px var(--azul) }
@media (max-width: 760px) { .lm-vistas button { padding-inline: 8px; font-size: 12.5px } }

/* ---------- formatação do texto das questões (formata.js) ---------- */
.fmt-vermelho { color: var(--fmt-vermelho) } .fmt-azul { color: var(--fmt-azul) } .fmt-verde { color: var(--fmt-verde) } .fmt-laranja { color: var(--fmt-laranja) } .fmt-amarelo { color: var(--fmt-amarelo) } .fmt-roxo { color: var(--fmt-roxo) }
.fmt-auto { color: var(--tinta) } .fmt-grifo-bg { color: var(--fmt-grifo) }
mark.fmt-grifo { background: var(--fmt-grifo); color: inherit; padding: 0 .05em; border-radius: 2px }
.fmt-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 4px; margin: 0 0 8px; border: 1px solid var(--suave); border-radius: 8px; background: var(--folha); position: sticky; top: 4px; z-index: 3 }
.fmt-bt { min-width: 32px; height: 32px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--tinta); font: 600 14px/1 var(--f-sans); cursor: pointer }
.fmt-bt:hover { background: var(--mesa) } .fmt-bt[aria-pressed="true"] { background: var(--mesa); border-color: var(--suave) }
.fmt-bt sub, .fmt-bt sup { font-size: .65em }
.fmt-bt-mark svg { color: var(--tinta) } .fmt-bt-mark[aria-pressed="true"] { background: var(--fmt-grifo) }
.fmt-sep { width: 1px; height: 22px; margin: 0 4px; background: var(--suave) }
.fmt-cores { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px }
.fmt-cores-t { font: 700 14px/1 var(--f-sans); color: var(--tinta); margin-right: 2px; border-bottom: 3px solid var(--fmt-vermelho) }
.fmt-cor-bt { width: 22px; height: 22px; padding: 0; border: 2px solid var(--folha); border-radius: 50%; box-shadow: 0 0 0 1px var(--suave); cursor: pointer }
.fmt-cor-bt.fmt-vermelho { background: var(--fmt-vermelho) } .fmt-cor-bt.fmt-amarelo { background: var(--fmt-amarelo) } .fmt-cor-bt.fmt-azul { background: var(--fmt-azul) } .fmt-cor-bt.fmt-verde { background: var(--fmt-verde) } .fmt-cor-bt.fmt-laranja { background: var(--fmt-laranja) } .fmt-cor-bt.fmt-roxo { background: var(--fmt-roxo) } .fmt-cor-bt.fmt-auto { background: var(--tinta) }
.fmt-cor-bt:hover { box-shadow: 0 0 0 2px var(--azul) }
.rt { min-height: 2.6em; padding: 8px 10px; border: 1px solid var(--suave); border-radius: 8px; background: var(--folha); color: var(--tinta); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; font: inherit }
.rt:focus { outline: 2px solid var(--azul); outline-offset: 1px }
.rt:empty::before { content: attr(data-ph); color: var(--texto-3) }
.altrow .rt { flex: 1; min-width: 0; min-height: 2.2em; padding: 6px 9px }
@media (max-width: 760px) { .fmt-bt { min-width: 36px; height: 36px } .fmt-cor-bt { width: 26px; height: 26px } }
.fmt-quebra { flex-basis: 100%; height: 0 }
.fmt-esp { position: relative; display: inline-flex }
.fmt-esp-menu { position: absolute; top: 100%; left: 0; z-index: 6; display: flex; flex-direction: column; min-width: 64px; margin-top: 4px; padding: 4px; border: 1px solid var(--suave); border-radius: 8px; background: var(--folha); box-shadow: 0 6px 18px rgba(20, 30, 50, .14) }
.fmt-esp-menu[hidden] { display: none }
.fmt-esp-menu button { padding: 6px 10px; border: 0; border-radius: 6px; background: none; color: var(--tinta); font: 500 13px/1 var(--f-sans); text-align: left; cursor: pointer }
.fmt-esp-menu button:hover { background: var(--mesa) }
span.fmt-p { display: block }
.fmt-mk { display: inline-block; width: 1.3em; margin-left: -1.45em; text-align: right; padding-right: .15em }
.fmt-lista { margin: 0; padding-left: 1.6em }
.fmt-lista .fmt-lista { padding-left: 1.4em }
ol.fmt-lista ol.fmt-lista { list-style-type: lower-alpha } ol.fmt-lista ol.fmt-lista ol.fmt-lista { list-style-type: lower-roman }
ul.fmt-lista ul.fmt-lista { list-style-type: circle } ul.fmt-lista ul.fmt-lista ul.fmt-lista { list-style-type: square }
.ed-q-en ol ol, .rt ol ol, .ed-q-en ol.fmt-lista ol { list-style-type: lower-alpha } .ed-q-en ol ol ol, .rt ol ol ol { list-style-type: lower-roman }
.ed-q-en ul ul, .rt ul ul { list-style-type: circle } .ed-q-en ul ul ul, .rt ul ul ul { list-style-type: square }
.ed-q-en ol, .ed-q-en ul, .rt ol, .rt ul { margin: 0; padding-left: 1.6em }

/* Liberar gabarito na lista de provas (17/11/2026) */
.lm-pnome { background: none; border: 0; padding: 0; font: inherit; color: var(--tinta); font-weight: 600; text-align: left; cursor: pointer; display: inline-flex; flex-direction: column; min-width: 0 }
.lm-pnome:hover { text-decoration: underline; text-underline-offset: 3px }
.lm-sitlib { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.lm-lib { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 12px; border: 1px solid var(--azul); border-radius: 6px; background: var(--folha); color: var(--azul); font: 600 13px/1 var(--f-sans); cursor: pointer; white-space: nowrap }
.lm-lib:hover { background: var(--mesa) }
.lm-lib.on { background: var(--ok, #2E8B57); border-color: var(--ok, #2E8B57); color: #fff }
.lm-lib svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4 }
/* Lista de provas no explorador (Rafael, 18/11/2026: "isso está muito desorganizado"): nome inteiro em cima, etiqueta e ações embaixo,
   situação e Liberar gabarito um embaixo do outro; nada passa por cima da coluna do lado. */
.lm-comlib .lm-th, .lm-comlib .lm-lin { grid-template-columns: minmax(0, 1fr) 156px 52px 92px }
.lm-comlib .lm-lin { padding-top: 10px; padding-bottom: 10px; align-items: center }
.lm-comlib .lm-lin .nome.lm-nm2 { flex-direction: column; align-items: flex-start; gap: 6px }
.lm-comlib .lm-pl-1 { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100% }
.lm-comlib .lm-pl-1 .lm-pnome, .lm-comlib .lm-pl-1 > span { white-space: normal; overflow: visible; text-overflow: clip; font-size: 15px; line-height: 1.3 }
.lm-comlib .lm-pl-2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-left: 30px; min-width: 0; max-width: 100% }
.lm-comlib .lm-pl-2 .lm-acoes { margin-left: 0; flex-wrap: wrap }
.lm-comlib .lm-pl-2 span { white-space: nowrap }
.lm-comlib .lm-sitlib { flex-direction: column; align-items: flex-start; gap: 6px }
@media (max-width: 1180px) { .lm-comlib .lm-th, .lm-comlib .lm-lin { grid-template-columns: minmax(0, 1fr) 148px 48px } .lm-comlib .lm-th .alt, .lm-comlib .lm-lin .alt { display: none } }
/* pasta Provas e cartões-resposta da disciplina: lista (nome em cima, ações embaixo) e Liberar gabarito na frente */
.lm-dj-lib .lm-th, .lm-dj-lib .lm-lin { grid-template-columns: minmax(0, 1fr) 176px 112px 56px 92px }
.lm-dj-lib .lm-plin { padding-top: 10px; padding-bottom: 10px; align-items: center }
.lm-dj-lib .lm-plin .nome { flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0 }
.lm-pl-1 { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; flex-wrap: wrap }
.lm-dj-lib .lm-plin .lm-abre { white-space: normal; overflow: visible; font-size: 15px }
.lm-dj-lib .lm-plin .lm-acoes { margin-left: 30px; flex-wrap: wrap }
@media (max-width: 820px) {
  .lm-comlib .lm-th, .lm-comlib .lm-lin { grid-template-columns: minmax(0, 1fr) 140px 46px }
  .lm-comlib .lm-pl-2 { padding-left: 0 }
  .lm-sitlib { flex-direction: column; align-items: flex-start; gap: 4px }
  .lm-lib { min-height: 30px; padding: 0 10px; font-size: 12.5px }
  .lm-dj-lib .lm-th, .lm-dj-lib .lm-lin { grid-template-columns: minmax(0, 1fr) 150px 100px }
  .lm-dj-lib .lm-th > :nth-child(4), .lm-dj-lib .lm-th > :nth-child(5), .lm-dj-lib .lm-lin > :nth-child(4), .lm-dj-lib .lm-lin > :nth-child(5) { display: none }
}
@media (max-width: 600px) {
  .lm-dj-lib .lm-th { display: none }
  .lm-dj-lib .lm-lin { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px }
  .lm-dj-lib .lm-plin .nome { grid-column: 1 / -1 }
  .lm-dj-lib .lm-plin .lm-acoes { margin-left: 0 }
  .lm-dj-lib .lm-lin > :nth-child(3) { justify-self: end }
}

/* A prova aberta na pasta: questões com troca de resposta, valor e anular (22/11/2026) */
.lm-qs { margin: 16px 0 0; padding: 20px 24px; background: var(--folha); border: 1px solid var(--fino); border-radius: 12px; }
.lm-qs[hidden] { display: none; }
.lm-qs-c { margin: 0; color: var(--texto-2); }
.lm-qs-t { margin-bottom: 8px; }
.lm-qs-t h3 { margin: 0 0 4px; font: 600 18px/1.3 var(--f-sans); color: var(--tinta); text-wrap: balance; }
.lm-qs-t p { margin: 0; font-size: 13px; color: var(--texto-2); max-width: 70ch; }
.lm-qs-q { padding: 16px 0; border-top: 1px solid var(--fino); }
.lm-qs-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.lm-qs-h b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta); }
.lm-qs-a { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lm-qs-v { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--texto-2); }
.lm-qs-v input { width: 72px; min-height: 36px; padding: 0 8px; border: 1px solid var(--suave); border-radius: 6px; background: var(--folha); color: var(--tinta); font: 600 14px/1 var(--f-sans); text-align: right; font-variant-numeric: tabular-nums; }
.lm-qs-v input:focus-visible { outline: 2px solid var(--azul); outline-offset: 1px; }
.lm-qs-anu { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: var(--crit-ink); background: var(--crit-soft); }
.lm-qs-en { max-width: 75ch; text-align: justify; hyphens: auto; color: var(--tinta); }
.lm-qs-img { display: block; max-width: 100%; max-height: 320px; margin: 10px 0; border-radius: 6px; border: 1px solid var(--fino); }
.lm-qs-alts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.lm-qs-alts li { display: flex; align-items: flex-start; gap: 10px; padding: 4px 8px; border-radius: 6px; }
.lm-qs-alts li.ok { background: var(--ok-fundo); }
.lm-qs-alts li span { flex: 1; min-width: 0; padding-top: 3px; }
.lm-qs-l { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--suave); background: var(--folha); color: var(--tinta); font: 700 13px/1 var(--f-sans); cursor: pointer; }
.lm-qs-l:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--ok); color: var(--ok); }
.lm-qs-l[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: var(--branco); }
.lm-qs-l:disabled { cursor: default; }
.lm-qs-l:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }
.lm-qs-g { margin: 8px 0 0; font-size: 14px; color: var(--texto-2); }
.lm-qs-j { display: block; margin-top: 16px; max-width: 75ch; }
.lm-qs-jt { display: block; font-size: 13px; font-weight: 600; color: var(--tinta); margin-bottom: 8px; }
.lm-qs-j textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--suave); border-radius: 10px; padding: 12px 16px; font: inherit; font-size: 14px; line-height: 1.5; color: var(--tinta); background: var(--folha); resize: vertical; min-height: 88px; }
.lm-qs-j textarea:focus { outline: 2px solid var(--azul); outline-offset: 1px; }
.lm-qs-j small { display: block; margin-top: 8px; font-size: 13px; color: var(--texto-2); }
.lm-qs-q.anulada .lm-qs-en, .lm-qs-q.anulada .lm-qs-alts { opacity: .55; }
.lm-qs-q.anulada .lm-qs-alts li.ok { background: transparent; }
@media (max-width: 640px) { .lm-qs { padding: 16px; } .lm-qs-a { margin-left: 0; width: 100%; justify-content: space-between; } .lm-qs-en { text-align: left; } }
.lm-qs-th { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.lm-qs-th h3 { margin: 0; }
.lm-qs-th h3:focus { outline: none; }
