/* Gabarito — estilo Limpo: tela "Alunos" (limpo-alunos.js).
   Uma lista só: busca, adicionar, importar, a tabela com a média por disciplina e, à direita, o painel com as notas do aluno escolhido.
   No celular a tabela fica compacta (nome e média) e o painel vira uma folha que sobe ao tocar no aluno.
   Cores só pelos tokens do limpo.css; fonte Inter. */

.lm-al { max-width: 1180px; margin: 0 auto; padding: 22px max(16px, 2.2vw) 48px; display: flex; flex-direction: column; gap: 18px; font-family: var(--f-sans); color: var(--tinta) }

/* cabeçalho da tela */
.lm-al-hero { padding-top: 6px }
.lm-al-hero .lm-eyebrow { margin: 0 0 10px }
.lm-al-hero .ts-tag { letter-spacing: 0; font-weight: 600; font-size: 12.5px }
.lm-al-hero h1 { margin: 0; font: 600 clamp(28px, 2.7vw, 36px)/1.12 var(--f-sans); letter-spacing: -.025em; color: var(--tinta) }
.lm-al-hero h1 em { font-style: normal; color: var(--texto-3) }
.lm-al-lead { margin: 10px 0 0; max-width: 52ch; font: 400 16px/1.55 var(--f-sans); color: var(--texto-2) }

/* busca e botões */
.lm-al-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px }
.lm-al-busca { flex: 1 1 280px; width: auto; max-width: 420px }
.lm-al-busca input { min-height: 42px; font-size: 15px }
.lm-al-tools .lm-btn { min-height: 42px; font-size: 14.5px }
.lm-al > .notice { margin: -6px 0 0 }

/* a tabela e o painel */
.lm-al-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start }
.lm-al-card { border: 1px solid var(--fino); border-radius: 12px; background: var(--folha); min-width: 0 }
.lm-al-lista { overflow: hidden }
.lm-al-row { display: grid; grid-template-columns: var(--cols); align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; background: var(--folha) }
.lm-al-hd { min-height: 44px; border-bottom: 1px solid var(--fino); font: 700 12px/1.2 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-3) }
.lm-al-hd .d > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; overflow-wrap: anywhere; font-size: var(--hdf, 10px); letter-spacing: .03em; line-height: 1.25 }
/* todas as disciplinas abertas: a tabela rola de lado (só ela) e a coluna do aluno fica parada */
.lm-al-tab.rola { overflow-x: auto; scrollbar-width: thin }
.lm-al-tab.rola .lm-al-rows { min-width: var(--minw, 0) }
.lm-al-tab.rola .lm-al-row { padding: 0 }
.lm-al-tab.rola .lm-al-row > :first-child { position: sticky; left: 0; z-index: 1; height: 100%; display: flex; align-items: center; padding-left: 22px; background: inherit; box-shadow: 8px 0 8px -8px color-mix(in srgb, var(--tinta) 18%, transparent) }
.lm-al-tab.rola .lm-al-row > :last-child { padding-right: 22px }
.lm-al-it { border-bottom: 1px solid var(--fino); cursor: pointer; transition: background .12s; outline-offset: -2px }
.lm-al-it:last-child { border-bottom: 0 }
.lm-al-it:hover { background: var(--mesa) }
.lm-al-it.on { background: var(--sel); box-shadow: inset 3px 0 0 var(--azul) }
.lm-al-nm { display: flex; align-items: center; gap: 12px; min-width: 0 }
.lm-al-ini { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--mesa); font: 700 12px/1 var(--f-sans); letter-spacing: .04em; color: var(--texto-2) }
.lm-al-it.on .lm-al-ini { background: var(--azul); color: var(--folha) }
.lm-al-nome { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 15px }
.lm-al-mat { font-size: 14px; color: var(--texto-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.lm-al-hd .lm-al-mat { font-size: 12px; color: var(--texto-3) }
.lm-al-n { font: 500 18px/1 var(--f-sans); font-variant-numeric: tabular-nums; color: var(--tinta); white-space: nowrap }
.lm-al-hd .lm-al-n { font: 700 12px/1.2 var(--f-sans); color: var(--texto-3) }
.lm-al-n .vazio { color: var(--texto-3); font-weight: 400 }
.lm-al-mat .vazio { color: var(--texto-3) }
.lm-al-mais { min-height: 30px; padding: 0 10px; border: 1px solid var(--suave); border-radius: 999px; background: var(--folha); color: var(--texto-2); font: 700 12px/1 var(--f-sans); letter-spacing: 0; cursor: pointer }
.lm-al-mais:hover { background: var(--mesa); color: var(--tinta) }
.lm-al-mais-b { display: flex; justify-content: center; padding: 12px }
.lm-al-rod { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; min-height: 44px; padding: 6px 22px; border-top: 1px solid var(--fino); background: var(--mesa); font: 400 13.5px/1.4 var(--f-sans); color: var(--texto-3) }
.lm-al-rod-b { min-height: 30px; padding: 0 2px; border: 0; background: none; color: var(--texto-2); font: 600 13px/1 var(--f-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer }
.lm-al-rod-b:hover { color: var(--tinta) }
.lm-al-vz { padding: 40px 22px; text-align: center }
.lm-al-vz b { display: block; font: 600 20px/1.2 var(--f-sans); letter-spacing: -.01em; color: var(--tinta) }
.lm-al-vz p { margin: 8px auto 0; max-width: 46ch; color: var(--texto-2); font-size: 14.5px; line-height: 1.55 }
.lm-al-vz .lm-btn { margin-top: 14px }
.lm-al-vz-b { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px }
.lm-al-vz-b .lm-btn { margin-top: 0 }
.lm-al-vz .lm-al-vz-b { margin-top: 16px }

/* painel: as notas do aluno escolhido */
.lm-al-det { position: sticky; top: calc(var(--lm-barra) + 14px); padding: 24px }
.lm-al-det .lm-eyebrow { margin: 0 0 4px }
.lm-al-fechar { display: none }
.lm-al-dn { margin: 0; font: 600 19px/1.3 var(--f-sans); letter-spacing: -.01em; color: var(--tinta); overflow-wrap: anywhere }
.lm-al-dm { margin: 4px 0 12px; font-size: 13.5px; color: var(--texto-3) }
.lm-al-discs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px }
.lm-al-chip { min-height: 28px; padding: 0 10px; border: 1px solid var(--suave); border-radius: 999px; background: var(--mesa); color: var(--texto-2); font: 500 12.5px/1 var(--f-sans); cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.lm-al-chip:hover { background: var(--sel); color: var(--tinta); border-color: var(--azul-2) }
.lm-al-sem { font-size: 13.5px; color: var(--texto-3) }
.lm-al-dl { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--fino) }
.lm-al-dl li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--fino) }
.lm-al-dl .t { display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.lm-al-dl .t b { font: 600 14px/1.3 var(--f-sans); color: var(--tinta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.lm-al-dl .t small { font: 400 12.5px/1.3 var(--f-sans); color: var(--texto-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.lm-al-dl .n { flex: none; font: 600 22px/1 var(--f-sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--tinta) }
.lm-al-dl-vazia { margin: 0; padding: 14px 0; border-top: 1px solid var(--fino); border-bottom: 1px solid var(--fino); line-height: 1.5 }
.lm-al-dmed { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0 4px; font: 600 15px/1 var(--f-sans); color: var(--tinta) }
.lm-al-dmed b { font: 600 38px/1 var(--f-sans); letter-spacing: -.025em; font-variant-numeric: tabular-nums; color: var(--azul) }
.lm-al-acoes { display: grid; gap: 8px; margin-top: 16px }
.lm-al-acoes .lm-btn { width: 100% }
.lm-al-acoes .lm-btn.perigo { color: var(--erro) }
.lm-al-acoes .lm-btn.perigo:hover { border-color: var(--erro) }
.lm-al-dv { padding: 20px 0; text-align: center }
.lm-al-dv b { display: block; font: 600 19px/1.3 var(--f-sans); letter-spacing: -.01em; color: var(--tinta) }
.lm-al-dv p { margin: 6px auto 0; max-width: 30ch; font: 400 14.5px/1.5 var(--f-sans); color: var(--texto-2) }
.lm-al-veu { display: none }

/* tablet: uma coluna; a tabela guarda matrícula, a primeira disciplina e a média; o painel vira uma folha ao tocar no aluno */
@media (max-width: 1100px) {
  .lm-al-grid { grid-template-columns: minmax(0, 1fr) }
  .lm-al-row { grid-template-columns: var(--cols-m) }
  .lm-al-row .d:not(.d1), .lm-al-row .mais { display: none }
  .lm-al-tab.rola { overflow-x: visible }
  .lm-al-tab.rola .lm-al-rows { min-width: 0 }
  .lm-al-tab.rola .lm-al-row { padding: 0 22px }
  .lm-al-tab.rola .lm-al-row > :first-child { position: static; padding-left: 0; box-shadow: none }
  .lm-al-tab.rola .lm-al-row > :last-child { padding-right: 0 }
  .lm-al-rod-b { display: none }
  .lm-al-det { display: none }
  .lm-al-det.aberto { display: block; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60; max-height: min(82vh, 640px); overflow: auto; border-radius: 14px 14px 0 0; border-bottom: 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 36px color-mix(in srgb, var(--tinta) 22%, transparent) }
  .lm-al-det.aberto + .lm-al-veu { display: block; position: fixed; inset: 0; z-index: 59; background: color-mix(in srgb, var(--tinta) 38%, transparent) }
  .lm-al-det.aberto .lm-al-fechar { display: inline-grid; place-items: center; position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--mesa); color: var(--tinta); cursor: pointer }
  .lm-al-det.aberto .lm-al-fechar:hover { background: var(--suave) }
  .lm-al-det.aberto .lm-al-dn { padding-right: 44px }
  .lm-al-acoes { grid-template-columns: 1fr 1fr }
  .lm-al-acoes .lm-btn:first-child { grid-column: 1 / -1 }
}
/* celular: só nome e média; busca em cima, dois botões lado a lado */
@media (max-width: 700px) {
  .lm-al { padding-top: 16px; gap: 16px }
  .lm-al-row, .lm-al-tab.rola .lm-al-row { grid-template-columns: var(--cols-s); padding: 0 16px; gap: 10px }
  .lm-al-row .lm-al-mat, .lm-al-row .d { display: none }
  .lm-al-rod { padding: 12px 16px }
  .lm-al-busca { flex-basis: 100%; max-width: none }
  .lm-al-tools .lm-btn { flex: 1 1 auto }
  .lm-al-vz { padding: 32px 16px }
}
@media (prefers-reduced-motion: reduce) { .lm-al-it { transition: none } }

/* turma e grupo embaixo do nome */
.lm-al-tx { display: flex; flex-direction: column; min-width: 0 }
.lm-al-tg { font-size: 12px; line-height: 1.3; color: var(--texto-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }

/* tabela editável: nome, matrícula, disciplina (setinha), turma, grupo, excluir */
.lm-al-in { width: 100%; min-width: 0; box-sizing: border-box; height: 34px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--tinta); font: 400 14px/1 var(--f-sans) }
.lm-al-in.nome { font-weight: 600; font-size: 15px }
.lm-al-in:hover { border-color: var(--fino); background: var(--folha) } .lm-al-in:focus { outline: none; border-color: var(--azul); background: var(--folha) }
.lm-al-mat .lm-al-in { color: var(--texto-2) }
.lm-al-dc { position: relative; min-width: 0 }
.lm-al-dbtn { display: flex; align-items: center; justify-content: space-between; gap: 4px; width: 100%; height: 34px; padding: 0 8px; border: 1px solid var(--fino); border-radius: 6px; background: var(--folha); color: var(--tinta); font: 500 13px/1.2 var(--f-sans); text-align: left; cursor: pointer }
.lm-al-dbtn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap } .lm-al-dbtn i { color: var(--texto-3); font-style: normal } .lm-al-dbtn small { color: var(--texto-3) }
.lm-al-dbtn svg { flex: none; transform: rotate(90deg); color: var(--texto-3) } .lm-al-dbtn.on { border-color: var(--azul) }
.lm-al-dpop { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 220px; max-height: 220px; overflow: auto; display: flex; flex-direction: column; gap: 2px; padding: 6px; border: 1px solid var(--suave); border-radius: 8px; background: var(--folha); box-shadow: 0 8px 24px rgba(var(--tinta-rgb), .12) }
.lm-al-dpop label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font: 400 13.5px/1.25 var(--f-sans); color: var(--tinta); cursor: pointer } .lm-al-dpop label:hover { background: var(--mesa) }
.lm-al-sel select { width: 100%; height: 34px; padding: 0 6px; border: 1px solid var(--fino); border-radius: 6px; background: var(--folha); color: var(--tinta); font: 500 13.5px/1 var(--f-sans) }
.lm-al-del { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 6px; background: none; color: var(--texto-3); cursor: pointer } .lm-al-del:hover { background: var(--mesa); color: var(--erro) }
.lm-al-hd .lm-al-dc, .lm-al-hd .lm-al-sel { font-size: 12px; color: var(--texto-3) }
@media (max-width: 1100px) { .lm-al-row .lm-al-mat, .lm-al-row .lm-al-n { display: none } }
@media (max-width: 700px) { .lm-al-row .lm-al-dc, .lm-al-row .lm-al-sel { display: none } }
/* a lista editável precisa de espaço: o painel do aluno só aparece quando um aluno é escolhido; a lista de disciplinas não é cortada */
.lm-al-grid:not(:has(.lm-al-det.aberto)) { grid-template-columns: minmax(0, 1fr) }
.lm-al-grid:not(:has(.lm-al-det.aberto)) .lm-al-det { display: none }
.lm-al-lista:has(.lm-al-dpop) { overflow: visible }
.lm-al .lm-al-in { border: 1px solid transparent; box-shadow: none; background: none; min-height: 0 }
.lm-al .lm-al-in:hover { border-color: var(--fino); background: var(--folha) } .lm-al .lm-al-in:focus { border-color: var(--azul); background: var(--folha) }
.lm-al-seta { flex: none; font-size: 12px; color: var(--texto-3) }
.lm-al-dpop input { flex: none }
.lm-al-tools .lm-btn.perigo { color: var(--erro) } .lm-al-tools .lm-btn.perigo:hover { border-color: var(--erro) }

/* ---------- Alunos em pastas: uma barra de lado a lado por disciplina (Rafael, 7/11/2026) ---------- */
.lm-al-pastas { min-width: 0 }
.lm-alps { display: flex; flex-direction: column; gap: 18px }
.lm-alp-g { display: flex; flex-direction: column; gap: 8px }
.lm-alp-gt { margin: 0 0 2px; font: 600 11.5px/1.2 var(--f-sans, 'Inter', sans-serif); letter-spacing: .1em; text-transform: uppercase; color: var(--texto-2) }
.lm-alp { background: var(--folha); border: 1px solid var(--fino); border-radius: 10px; overflow: hidden }
.lm-alp.aberta { border-color: var(--suave) }
.lm-alp-b { width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto 24px; align-items: center; gap: 14px; padding: 14px 18px; min-height: 68px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--tinta); font: inherit }
.lm-alp-b:hover { background: var(--mesa) }
.lm-alp.aberta .lm-alp-b { border-bottom: 1px solid var(--fino) }
.lm-alp-ico { display: inline-flex }
.lm-alp-t { display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.lm-alp-t b { font: 600 17px/1.25 var(--f-serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.lm-alp-t small, .lm-alp-n small { color: var(--texto-2); font-size: 12.5px }
.lm-alp-tu { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end }
.lm-alp-chip { padding: 3px 9px; border-radius: 999px; background: var(--mesa); border: 1px solid var(--fino); font-size: 12px; font-weight: 600; color: var(--tinta); white-space: nowrap }
.lm-alp-chip.sem { color: var(--texto-2); font-weight: 500 }
.lm-alp-n { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap }
.lm-alp-n b { font-size: 14px }
.lm-alp-seta { display: inline-flex; color: var(--texto-2); transition: transform .18s ease }
.lm-alp.aberta .lm-alp-seta { transform: rotate(180deg) }
.lm-alp-in { padding: 4px 6px 12px }
.lm-alp-in .lm-al-tab { border: 0 }
.lm-alp-vz { margin: 14px 12px; color: var(--texto-2) }
.lm-alp-acoes { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 12px 2px }
@media (max-width: 760px) {
  .lm-alp-b { grid-template-columns: 30px minmax(0, 1fr) auto 20px; gap: 10px; padding: 12px }
  .lm-alp-tu { grid-column: 2 / -1; grid-row: 2; justify-content: flex-start }
}
@media (prefers-reduced-motion: reduce) { .lm-alp-seta { transition: none } }
@media (max-width: 700px) {
  .lm-alp .lm-al-row { grid-template-columns: minmax(0, 1fr) 62px 62px 34px !important }
  .lm-alp .lm-al-row .lm-al-sel { display: block }
  .lm-alp .lm-al-ini { display: none }
  .lm-alp .lm-al-row { padding: 0 8px !important; gap: 6px !important }
}

/* ---------- repaginada (Rafael, 11/11/2026: "mais organizado e atrativo") ---------- */
.lm-al { --al-c1: #1D3557; --al-c2: #2A9D8F; --al-c3: #457B9D; --al-c4: #F0142F; --al-alto: #2E8B57; --al-mod: #457B9D; --al-baixo: #D99A1E; --al-crit: #D64550 }
.lm-al-hero { display: flex; flex-direction: column; gap: 16px; padding-top: 0 }
.lm-al-hero h1 { font: 600 clamp(26px, 2.4vw, 32px)/1.15 var(--f-serif, var(--f-sans)); letter-spacing: -.01em }
.lm-al-hero h1 em { font-style: italic; font-weight: 400; color: var(--texto-2) }
.lm-al-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px }
.lm-al-kpi { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--fino); border-radius: 12px; background: var(--folha); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease }
.lm-al-kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--k) }
.lm-al-kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(29, 53, 87, .10) }
.lm-al-kpi.k1 { --k: var(--al-c1) } .lm-al-kpi.k2 { --k: var(--al-c2) } .lm-al-kpi.k3 { --k: var(--al-c3) } .lm-al-kpi.k4 { --k: var(--al-alto) } .lm-al-kpi.k4.alerta { --k: var(--al-baixo) }
.lm-al-kpi-i { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: color-mix(in srgb, var(--k) 12%, var(--folha)); color: var(--k) }
.lm-al-kpi-t { display: flex; flex-direction: column; min-width: 0 }
.lm-al-kpi-t b { font: 700 24px/1.05 var(--f-sans); font-variant-numeric: tabular-nums; color: var(--tinta) }
.lm-al-kpi-t small { margin-top: 3px; font-size: 12.5px; color: var(--texto-2); line-height: 1.25 }
.lm-al-tools { padding: 10px; border: 1px solid var(--fino); border-radius: 12px; background: var(--folha) }
.lm-al-tools .lm-al-busca { max-width: none }
.lm-al > .notice { border-radius: 12px }
.lm-alp-g { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px }
.lm-alp-gt { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 2px !important; font: 700 13px/1.2 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--tinta) }
.lm-alp-gt i { align-self: center; width: 10px; height: 10px; border-radius: 50%; background: var(--cc) }
.lm-alp-gt small { font: 500 12.5px/1 var(--f-sans); letter-spacing: 0; text-transform: none; color: var(--texto-2) }
.lm-alp { position: relative; border: 1px solid var(--fino); border-radius: 12px; background: var(--folha); overflow: hidden; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease }
.lm-alp::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--cc, var(--al-c1)) }
.lm-alp:hover { box-shadow: 0 8px 22px rgba(29, 53, 87, .10); transform: translateY(-1px); border-color: color-mix(in srgb, var(--cc, var(--al-c1)) 35%, var(--fino)) }
.lm-alp.aberta { box-shadow: 0 10px 26px rgba(29, 53, 87, .12) }
.lm-alp-b { padding-left: 22px !important }
.lm-alp-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--cc, var(--al-c1)) 10%, var(--folha)) }
.lm-alp-chip { border: 1px solid color-mix(in srgb, var(--cc, var(--al-c1)) 25%, var(--fino)); background: color-mix(in srgb, var(--cc, var(--al-c1)) 7%, var(--folha)); color: var(--tinta) }
.lm-alp-chip.sem { border-style: dashed; background: var(--folha); color: var(--texto-2) }
.lm-alp-n b { font-size: 15.5px }
.lm-alp-med { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end }
.lm-alp-med i { position: relative; display: inline-block; width: 46px; height: 6px; border-radius: 99px; background: var(--mesa); overflow: hidden }
.lm-alp-med i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--m); border-radius: 99px; background: var(--f, var(--al-mod)) }
.lm-alp-med.alto { --f: var(--al-alto) } .lm-alp-med.mod { --f: var(--al-mod) } .lm-alp-med.baixo { --f: var(--al-baixo) } .lm-alp-med.crit { --f: var(--al-crit) }
.lm-alp-sem::before { background: var(--texto-3) }
@media (max-width: 900px) { .lm-al-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 480px) { .lm-al-kpi { padding: 12px } .lm-al-kpi-t b { font-size: 20px } .lm-al-kpi-i { width: 36px; height: 36px } }
@media (prefers-reduced-motion: reduce) { .lm-al-kpi:hover, .lm-alp:hover { transform: none } }
.lm-alp-ico { margin-right: 10px }
.lm-alp-in .lm-al-hd { background: color-mix(in srgb, var(--cc, var(--al-c1)) 5%, var(--folha)) }
.lm-alp-in .lm-al-it:hover { background: color-mix(in srgb, var(--cc, var(--al-c1)) 6%, var(--folha)) }
.lm-al-mds { padding: 14px 16px; border: 1px solid var(--fino); border-radius: 12px; background: var(--folha) }
.lm-al-mds-t { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 700 12.5px/1 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--texto-2) }
.lm-al-mds ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; margin: 0; padding: 0; list-style: none }
.lm-al-mds li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 8px 10px 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--cc, var(--al-c1)) 6%, var(--folha)); box-shadow: inset 3px 0 0 var(--cc, var(--al-c1)) }
.lm-al-mds .n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px }
.lm-al-mds .lm-alp-med { flex: none; font-size: 13px } .lm-al-mds .lm-alp-med b { font: 700 16px/1 var(--f-sans); font-variant-numeric: tabular-nums } .lm-al-mds em { font-style: normal; color: var(--texto-3) }
.lm-al-mds .lm-alp-med i { width: 64px }

/* Alunos mais limpa (Rafael, 13/11/2026: "está muito poluído, menos informação é mais… reformule de forma mais limpa e organizada") */
.lm-al-resumo { margin: 4px 0 0; color: var(--texto-2); font-size: 15px }
.lm-al-av { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 0 2px; color: var(--texto-2); font-size: 14px }
.lm-al-av::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ambar, #C98A00) }
.lm-al-av-b { border: 0; background: none; padding: 4px 2px; color: var(--azul); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px }
.lm-al-av-b:hover { color: var(--tinta) }
.lm-al-av-b.perigo { color: var(--erro, #C81E1E); font-weight: 500 }
.lm-al-fim { margin: 18px 0 4px; text-align: right; font-size: 13px }

/* Lista única (opção 1, 13/11/2026): colunas próprias, mais fortes que as regras antigas da tabela */
.lm-al-fd { flex: 0 1 260px; min-width: 0 }
.lm-al-fd select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--suave); border-radius: 4px; background: var(--folha); color: var(--tinta); font: 500 14px/1 var(--f-sans) }
.lm-al-fd .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
.lm-al-um .lm-al-row { grid-template-columns: minmax(0,1.6fr) 120px minmax(0,1.1fr) 60px 40px }
.lm-al-um.disc .lm-al-row { grid-template-columns: minmax(0,1.6fr) 120px 78px 78px var(--aln, 60px) 40px }
.lm-al-um .lm-al-row .lm-al-n, .lm-al-um .lm-al-row .lm-al-mat { display: block }
.lm-al-um .lm-al-row .lm-al-n { text-align: right }
@media (max-width: 1100px) {
  .lm-al-um .lm-al-row { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) 56px 40px }
  .lm-al-um.disc .lm-al-row { grid-template-columns: minmax(0,1.5fr) 70px 70px var(--aln, 56px) 40px }
  .lm-al-um .lm-al-row .lm-al-mat { display: none }
}
@media (max-width: 700px) {
  .lm-al-fd { flex: 1 1 100% }
  .lm-al-um .lm-al-row, .lm-al-um.disc .lm-al-row { grid-template-columns: minmax(0,1fr) 48px 36px; padding: 0 12px; gap: 8px }
  .lm-al-um.disc .lm-al-row { grid-template-columns: minmax(0,1fr) 56px var(--aln, 48px) 36px }
  .lm-al-um .lm-al-row .lm-al-dc, .lm-al-um .lm-al-row .lm-al-sel.g { display: none }
  .lm-al-um.disc .lm-al-row .lm-al-sel:not(.g) { display: block }
}
@media (max-width: 700px) { .lm-al-um .lm-al-ini { display: none } }

/* nota editável na lista de alunos (16/11/2026) */
.lm-al-um .lm-al-row .lm-al-n.notas { display: flex; gap: 4px; justify-content: flex-end; align-items: center; text-align: right }
.lm-al-n.notas i { font-style: normal; width: 50px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.lm-al-n.notas .lm-al-med { width: 42px; text-align: right; font-weight: 700 }
.lm-al-in.nt { width: 50px; text-align: center; padding: 4px 2px; font-variant-numeric: tabular-nums; border: 1px solid var(--fino); border-radius: 4px; background: var(--folha) }
.lm-al-in.nt:focus { border-color: var(--azul); outline: none }
.lm-al-in.nt.man { border-color: var(--azul); font-weight: 700 }

/* Pastas de disciplina (20/11/2026, do protótipo "Alunos em grupos"): só no site; capas desenhadas por limpo-capas.js */
html:not(.nativo) .lm-al-vistas { flex: none }
.lm-alc-tudo { display: flex; flex-direction: column; gap: 24px }
.lm-alc-g { display: flex; flex-direction: column; gap: 12px }
.lm-alc-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 24px 20px; padding-top: 12px }
.lm-alc { --rx: 0deg; --ry: 0deg; --lx: 50%; --ly: 30%; position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; border: 1px solid var(--fino); border-radius: 0 14px 14px 14px; background: var(--folha); color: var(--tinta); text-align: left; cursor: pointer; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease, border-color .2s ease; box-shadow: 0 1px 2px rgba(11, 31, 68, .06) }
.lm-alc:hover { box-shadow: 0 18px 36px -18px rgba(11, 31, 68, .35); border-color: var(--suave) }
.lm-alc:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px }
.lm-alc:active { transform: perspective(900px) scale(.985) }
/* a aba da pasta, à esquerda em cima */
.lm-alc-aba { position: absolute; left: -1px; top: -12px; width: 42%; height: 13px; border: 1px solid var(--fino); border-bottom: 0; border-radius: 9px 12px 0 0; background: var(--folha) }
.lm-alc-cp { position: relative; display: block; height: 128px; margin: 6px 6px 0; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #0B1F44, #1F4296) }
.lm-alc-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s cubic-bezier(.16, 1, .3, 1) }
.lm-alc:hover .lm-alc-img { transform: scale(1.04) }
.lm-alc-luz { position: absolute; inset: 0; background: radial-gradient(circle at var(--lx) var(--ly), rgba(255, 255, 255, .32), transparent 55%), linear-gradient(180deg, transparent 35%, rgba(5, 13, 31, .72)); pointer-events: none }
.lm-alc-txt { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 3px; color: #fff }
.lm-alc-txt small { font: 600 11px/1.2 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.lm-alc-txt b { font: 600 19px/1.15 var(--f-sans); letter-spacing: -.01em; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 8px rgba(0, 0, 0, .25) }
.lm-alc-pe { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px }
.lm-alc-l1 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px }
.lm-alc-l1 b { font: 600 15px/1.2 var(--f-sans) }
.lm-alc-l1 small { font: 500 12.5px/1.2 var(--f-sans); color: var(--texto-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.lm-alc-l2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; font: 500 12.5px/1 var(--f-sans); color: var(--texto-2) }
.lm-alc-rostos { display: inline-flex; padding-left: 6px }
.lm-alc-rostos i { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: -6px; border: 2px solid var(--folha); border-radius: 50%; background: var(--mesa); color: var(--tinta); font: 700 11px/1 var(--f-sans); font-style: normal; letter-spacing: .02em }
.lm-alc-rostos i:nth-child(5n+1) { background: #DCE6FB; color: #14346E } .lm-alc-rostos i:nth-child(5n+2) { background: #FBE0E3; color: #8C1020 } .lm-alc-rostos i:nth-child(5n+3) { background: #DDF1EC; color: #145C50 } .lm-alc-rostos i:nth-child(5n+4) { background: #EDE3F7; color: #5B2A80 } .lm-alc-rostos i:nth-child(5n) { background: #FDF0D6; color: #7A4F00 }
.lm-alc-rostos i.mais { background: var(--tinta); color: #fff }
.lm-alc-vz { font-style: italic }
.lm-alc.sem .lm-alc-cp { background: repeating-linear-gradient(135deg, var(--mesa) 0 10px, var(--papel) 10px 20px) }
.lm-alc.sem .lm-alc-txt { color: var(--tinta) } .lm-alc.sem .lm-alc-txt b { text-shadow: none }
.lm-alc-trilha { display: flex; align-items: center; gap: 12px; margin: 0 0 12px }
.lm-alc-trilha b { font: 600 17px/1.2 var(--f-sans); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
@media (max-width: 700px) {
  .lm-alc-grade { grid-template-columns: 1fr 1fr; gap: 20px 12px }
  .lm-alc-cp { height: 96px }
  .lm-alc-txt b { font-size: 15px }
  .lm-alc-l1 { flex-direction: column; align-items: flex-start; gap: 2px }
  .lm-alc-l2 .lm-alp-med i { display: none }
  .lm-alc-rostos i:nth-child(n+4):not(.mais) { display: none }
  html:not(.nativo) .lm-al-vistas { flex: 1 1 auto } html:not(.nativo) .lm-al-vistas button { flex: 1 }
}
@media (max-width: 380px) { .lm-alc-grade { grid-template-columns: 1fr } }
@media (prefers-reduced-motion: reduce) { .lm-alc, .lm-alc-img { transition: none; transform: none !important } }
.lm-alc-l2 .lm-alp-med { white-space: nowrap; flex: none }
/* cursos → disciplinas → alunos (20/11/2026): quatro pastas por linha ("uma ao lado da outra até 4, depois passa para a próxima linha") */
html:not(.nativo) .lm-alc-grade { grid-template-columns: repeat(4, minmax(0, 1fr)) }
@media (max-width: 1000px) { html:not(.nativo) .lm-alc-grade { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
@media (max-width: 700px) { html:not(.nativo) .lm-alc-grade { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 380px) { html:not(.nativo) .lm-alc-grade { grid-template-columns: minmax(0, 1fr) } }
.lm-alc-tudo > .lm-alc-trilha { margin: 0 }
/* capa sólida na cor da paleta; a arte fica só como textura leve (20/11/2026) */
html:not(.nativo) .lm-alc-cp { background: var(--cor, #0B1F44) }
html:not(.nativo) .lm-alc-img { opacity: .14; mix-blend-mode: luminosity }
html:not(.nativo) .lm-alc-luz { background: radial-gradient(circle at var(--lx) var(--ly), rgba(255, 255, 255, .22), transparent 55%), linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .18)) }
html:not(.nativo) .lm-alc-l2 .lm-alp-med i { display: none }
html:not(.nativo) .lm-alc-rostos i:nth-child(n+5):not(.mais) { display: none }
/* modelo Tradicional das pastas (Disciplinas › Tradicional): as pastas de Alunos no amarelo das pastas do Windows */
html.pastas-trad:not(.nativo) .lm-alc-cp { background: linear-gradient(180deg, #FFD35C 0%, #F2B52C 100%) }
html.pastas-trad:not(.nativo) .lm-alc-img { display: none }
html.pastas-trad:not(.nativo) .lm-alc-luz { background: linear-gradient(180deg, rgba(255, 255, 255, .25), transparent 60%) }
html.pastas-trad:not(.nativo) .lm-alc-txt { color: #3D2A00 } html.pastas-trad:not(.nativo) .lm-alc-txt b { text-shadow: none }
html.pastas-trad:not(.nativo) .lm-alc-aba { background: #FFD35C; border-color: #E2A93B }
html.pastas-trad:not(.nativo) .lm-alc { border-color: #EBC46A }
/* modelo Vidro nas pastas de Alunos (20/11/2026: "como em Disciplinas, com a possibilidade de ser vidro ou tradicional"):
   a capa colorida vira o fundo da pasta, uma folha aparece e o vidro fosco fica na frente, com o nome por cima */
html:not(.nativo):not(.pastas-trad) .lm-alc-img { opacity: .55; mix-blend-mode: soft-light }
html:not(.nativo):not(.pastas-trad) .lm-alc-cp::before { content: ""; position: absolute; left: 12%; right: 12%; top: 16%; height: 40%; border-radius: 6px; background: linear-gradient(180deg, #fff, #EEF2F8); box-shadow: 0 2px 8px rgba(10, 12, 20, .25); transition: translate .35s cubic-bezier(.16, 1, .3, 1); z-index: 1 }
html:not(.nativo):not(.pastas-trad) .lm-alc-cp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64%; border-radius: 12px 12px 10px 10px; z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, .36) 0%, rgba(255, 255, 255, .12) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(1.6); backdrop-filter: blur(12px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 0 0 1px rgba(255, 255, 255, .28) }
html:not(.nativo):not(.pastas-trad) .lm-alc-luz { z-index: 3 }
html:not(.nativo):not(.pastas-trad) .lm-alc-txt { z-index: 4 }
html:not(.nativo):not(.pastas-trad) .lm-alc:hover .lm-alc-cp::before { translate: 0 -8px }
html:not(.nativo):not(.pastas-trad) .lm-alc.sem .lm-alc-cp::before, html:not(.nativo):not(.pastas-trad) .lm-alc.sem .lm-alc-cp::after { display: none }
html:not(.nativo) .lm-al-modelo { flex: none }
/* barra numa linha só no computador, com Pastas/Lista e Vidro/Tradicional */
@media (min-width: 1101px) {
  html:not(.nativo) .lm-al-tools { flex-wrap: nowrap }
  html:not(.nativo) .lm-al-tools .lm-al-busca { flex: 1 1 180px; min-width: 0 }
  html:not(.nativo) .lm-al-tools .lm-al-fd { flex: 0 1 220px }
  html:not(.nativo) .lm-al-tools .lm-btn { flex: none; padding-left: 14px; padding-right: 14px }
}
@media (max-width: 700px) { html:not(.nativo) .lm-alc-l2 { flex-wrap: wrap; row-gap: 6px } html:not(.nativo) .lm-alc-rostos i:nth-child(n+4):not(.mais) { display: none } }

/* Lista de alunos da disciplina, mais trabalhada (20/11/2026, do protótipo "Alunos em grupos") */
.lm-alr { --r-alto: #1E8A4C; --r-mod: #1F4296; --r-baixo: #B87400; --r-crit: #C81E1E; border: 1px solid var(--fino); border-radius: 14px; background: var(--folha); overflow: hidden }
.lm-alr-cab { display: flex; align-items: center; gap: 24px; padding: 20px 24px; border-bottom: 1px solid var(--fino) }
.lm-alr-tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto }
.lm-alr-tt small { font: 700 11.5px/1.2 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--azul-2, #1F4296) }
.lm-alr-tt b { font: 600 20px/1.2 var(--f-sans); color: var(--tinta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.lm-alr-rostos { display: inline-flex; padding-left: 8px; flex: none }
.lm-alr-rostos i { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: -8px; border: 2px solid var(--folha); border-radius: 50%; background: var(--av, #0B1F44); color: #fff; font: 700 13px/1 var(--f-sans); font-style: normal }
.lm-alr-rostos i.mais { background: #0B1F44 }
.lm-alr-n { flex: none; font: 500 14px/1 var(--f-sans); color: var(--texto-2) } .lm-alr-n b { font: 600 20px/1 var(--f-sans); color: var(--tinta); font-variant-numeric: tabular-nums }
.lm-alr-pv { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right }
.lm-alr-pv small { font: 500 12.5px/1.2 var(--f-sans); color: var(--texto-2) }
.lm-alr-pv b { font: 600 17px/1.1 var(--f-sans); color: var(--tinta) }
.lm-alr-pv select { max-width: 220px; height: 30px; padding: 0 8px; border: 1px solid var(--fino); border-radius: 8px; background: var(--folha); font: 500 12.5px/1 var(--f-sans); color: var(--texto-2) }
.lm-alr-pv .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
.lm-alr-it { display: grid; grid-template-columns: 48px minmax(0, 1.6fr) auto minmax(80px, 1fr) 124px 36px; align-items: center; gap: 16px; padding: 12px 24px; border-bottom: 1px solid var(--fino); cursor: pointer; transition: background .15s ease }
.lm-alr-it:last-child { border-bottom: 0 }
.lm-alr-it:hover { background: var(--papel) } .lm-alr-it.on { background: color-mix(in srgb, var(--azul-2, #1F4296) 7%, var(--folha)); box-shadow: inset 3px 0 0 var(--azul-2, #1F4296) }
.lm-alr-it:focus-visible { outline: 2px solid var(--azul-2, #1F4296); outline-offset: -2px }
.lm-alr-av { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--av, #0B1F44); color: #fff; font: 700 14px/1 var(--f-sans) }
.lm-alr-nm { display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.lm-alr .lm-al-in { border: 1px solid transparent; border-radius: 6px; background: none; padding: 2px 6px; margin-left: -6px; min-width: 0; width: 100% }
.lm-alr .lm-al-in.nome { font: 600 16px/1.25 var(--f-sans); color: var(--tinta) }
.lm-alr .lm-al-in.mat { font: 500 13px/1.2 var(--f-sans); color: var(--texto-2); font-variant-numeric: tabular-nums }
.lm-alr .lm-al-in:hover { border-color: var(--fino) } .lm-alr .lm-al-in:focus { border-color: var(--azul-2, #1F4296); background: var(--folha); outline: none }
.lm-alr-tg { display: flex; gap: 6px }
.lm-alr-tg select { height: 30px; padding: 0 6px; border: 1px solid var(--fino); border-radius: 99px; background: var(--folha); font: 500 12.5px/1 var(--f-sans); color: var(--texto-2) }
.lm-alr-bar { position: relative; height: 6px; border-radius: 99px; background: var(--mesa); overflow: hidden }
.lm-alr-bar i { position: absolute; inset: 0 auto 0 0; width: var(--m); border-radius: 99px; background: var(--rc, var(--r-mod)); transition: width .5s cubic-bezier(.16, 1, .3, 1) }
.lm-alr-bar.alto, .lm-alr-nt.alto { --rc: var(--r-alto) } .lm-alr-bar.mod, .lm-alr-nt.mod { --rc: var(--r-mod) } .lm-alr-bar.baixo, .lm-alr-nt.baixo { --rc: var(--r-baixo) } .lm-alr-bar.crit, .lm-alr-nt.crit { --rc: var(--r-crit) }
.lm-alr-nt { display: flex; align-items: baseline; justify-content: flex-end; gap: 1px; color: var(--rc, var(--tinta)); font-variant-numeric: tabular-nums }
.lm-alr-nt .lm-al-in.nt { width: 68px; margin: 0; padding: 2px 4px; border: 1px solid transparent; text-align: right; font: 700 18px/1.1 var(--f-sans); color: inherit; background: none }
.lm-alr-nt .lm-al-in.nt:hover { border-color: var(--fino) } .lm-alr-nt .lm-al-in.nt.man { border-color: transparent; text-decoration: underline dotted }
.lm-alr-nt small { font: 600 15px/1 var(--f-sans); color: inherit; opacity: .9 }
.lm-alr-nt b { font: 700 18px/1 var(--f-sans) } .lm-alr-nt b + small { font-size: 12px; margin-left: 4px; color: var(--texto-2) }
.lm-alr .lm-al-x { display: flex; justify-content: center }
@media (max-width: 900px) {
  .lm-alr-cab { flex-wrap: wrap; gap: 12px 16px; padding: 16px }
  .lm-alr-tt { flex-basis: 100% }
  .lm-alr-pv { margin-left: auto }
  .lm-alr-rostos i { width: 34px; height: 34px; font-size: 12px }
  .lm-alr-it { grid-template-columns: 40px minmax(0, 1fr) 112px 28px; grid-template-areas: "av nm nt x" "av tg tg tg" "bar bar bar bar"; gap: 6px 12px; padding: 12px 16px }
  .lm-alr-av { grid-area: av; width: 40px; height: 40px; font-size: 13px; align-self: start }
  .lm-alr-nm { grid-area: nm } .lm-alr-nt { grid-area: nt } .lm-alr .lm-al-x { grid-area: x } .lm-alr-tg { grid-area: tg } .lm-alr-bar { grid-area: bar }
}
/* campos da lista trabalhada sem a altura dos campos de formulário */
html body .lm-alr .lm-al-in { height: auto !important; min-height: 0 !important; box-shadow: none !important; padding-top: 1px; padding-bottom: 1px }
html body .lm-alr .lm-al-in.nome { height: 24px !important } html body .lm-alr .lm-al-in.mat { height: 20px !important }
html body .lm-alr .lm-al-it.on .lm-al-in:not(:focus), html body .lm-alr .lm-al-it .lm-al-in:not(:focus):not(:hover) { border-color: transparent !important; background: none !important }
html body .lm-alr-nt .lm-al-in.nt { width: 68px; height: 30px !important; padding: 0 4px }
html body .lm-alr-it { padding-top: 10px; padding-bottom: 10px }
@media (max-width: 900px) { .lm-alr-it { grid-template-columns: 40px minmax(0, 1fr) 104px 28px } }
/* fotos dos alunos (20/11/2026) */
.lm-alr-av { position: relative; border: 0; padding: 0; cursor: pointer; background-color: var(--av, #0B1F44); background-size: cover; background-position: center; transition: transform .18s cubic-bezier(.16, 1, .3, 1), box-shadow .18s ease }
.lm-alr-av:hover { transform: scale(1.06); box-shadow: 0 0 0 3px color-mix(in srgb, var(--azul-2, #1F4296) 25%, transparent) }
.lm-alr-av:focus-visible { outline: 2px solid var(--azul-2, #1F4296); outline-offset: 2px }
.lm-alr-av.com-foto > span, [data-foto-id].com-foto { color: transparent }
.lm-alr-av[style*="background-image"] > span { color: transparent }
.lm-alr-cam { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--azul-2, #1F4296); box-shadow: 0 1px 4px rgba(11, 31, 68, .3); font-style: normal }
.lm-alr-rostos i { background-size: cover; background-position: center }
.lm-alr-rostos i[style*="background-image"] { color: transparent }
.lm-alr-it.solta { background: color-mix(in srgb, var(--azul-2, #1F4296) 10%, var(--folha)); box-shadow: inset 0 0 0 2px var(--azul-2, #1F4296) }
.lm-alr-fotos, .lm-alr-imp { flex: none }
@media (max-width: 900px) { .lm-alr-fotos { order: 5 } }
/* seleção e Lista · Cartões · Fila (20/11/2026) */
.lm-alr-ops { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 24px; border-bottom: 1px solid var(--fino) }
.lm-alr-tudo { display: inline-flex; align-items: center; gap: 10px; font: 500 14.5px/1.2 var(--f-sans); color: var(--tinta); cursor: pointer; flex-basis: 100% }
.lm-alr-tudo input, .lm-alr-ck input { width: 20px; height: 20px; accent-color: var(--azul-2, #1F4296); cursor: pointer; margin: 0 }
.lm-alr-dica { flex: 1 1 280px; font: 400 13px/1.4 var(--f-sans); color: var(--texto-2) }
.lm-alr-vis { flex: none; margin-left: auto }
.lm-alr-ck { display: grid; place-items: center; width: 28px; height: 44px; cursor: pointer }
.lm-alr-it { grid-template-columns: 28px 48px minmax(0, 1.6fr) auto minmax(80px, 1fr) 124px 36px }
.lm-alr-it.marc { background: color-mix(in srgb, var(--azul-2, #1F4296) 5%, var(--folha)) }
.lm-alr-marc { position: sticky; top: calc(var(--hdr-h, 64px) + 8px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0; padding: 10px 24px; background: #0B1F44; color: #fff; font: 500 13.5px/1 var(--f-sans) }
.lm-alr-marc span { display: inline-flex; align-items: center; gap: 4px }
.lm-alr-mb { min-width: 30px; height: 30px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; background: rgba(255, 255, 255, .08); color: #fff; font: 600 13px/1 var(--f-sans); cursor: pointer }
.lm-alr-mb:hover { background: #fff; color: #0B1F44 }
.lm-alr-marc .lm-btn { background: #fff; color: #0B1F44; border-color: #fff } .lm-alr-marc .lm-btn.perigo { color: #A8161C }
/* Cartões */
.lm-alr-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 20px 24px 24px }
.lm-alr-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 14px 16px; border: 1px solid var(--fino); border-radius: 14px; background: var(--folha); text-align: center; cursor: pointer; transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s ease, border-color .2s ease }
.lm-alr-card:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(11, 31, 68, .4) }
.lm-alr-card.marc { border-color: var(--azul-2, #1F4296); box-shadow: 0 0 0 2px color-mix(in srgb, var(--azul-2, #1F4296) 30%, transparent) }
.lm-alr-card.on { border-color: var(--azul-2, #1F4296) }
.lm-alr-card .lm-alr-ck { position: absolute; top: 6px; left: 8px }
.lm-alr-av.gr { width: 84px; height: 84px; font-size: 24px; margin-bottom: 8px } .lm-alr-av.gr .lm-alr-cam { width: 26px; height: 26px; right: 0; bottom: 0 }
.lm-alr-cn { font: 600 15.5px/1.25 var(--f-sans); color: var(--tinta); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.lm-alr-card > small { font: 500 12.5px/1.2 var(--f-sans); color: var(--texto-2); font-variant-numeric: tabular-nums }
.lm-alr-card .lm-alr-bar { align-self: stretch; margin-top: 10px }
.lm-alr-ct { display: flex; align-items: baseline; gap: 1px; color: var(--rc, var(--tinta)); font-variant-numeric: tabular-nums } .lm-alr-ct b { font: 700 20px/1 var(--f-sans) } .lm-alr-ct small { font: 600 14px/1 var(--f-sans) }
.lm-alr-ct.alto { --rc: var(--r-alto) } .lm-alr-ct.mod { --rc: var(--r-mod) } .lm-alr-ct.baixo { --rc: var(--r-baixo) } .lm-alr-ct.crit { --rc: var(--r-crit) }
/* Fila */
.lm-alr-fila { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px; padding: 28px 24px 20px }
.lm-alr-seta { width: 44px; height: 44px; border: 1px solid var(--fino); border-radius: 50%; background: var(--folha); color: var(--tinta); font: 400 26px/1 var(--f-sans); cursor: pointer }
.lm-alr-seta:hover:not(:disabled) { border-color: var(--azul-2, #1F4296); color: var(--azul-2, #1F4296) } .lm-alr-seta:disabled { opacity: .35; cursor: default }
.lm-alr-foco { display: flex; align-items: center; gap: 32px; justify-content: center; animation: lmAlrEntra .35s cubic-bezier(.16, 1, .3, 1) }
@keyframes lmAlrEntra { from { opacity: 0; transform: translateX(16px) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) { .lm-alr-foco { animation: none } }
.lm-alr-av.xg { flex: none; width: 168px; height: 168px; font-size: 44px; box-shadow: 0 24px 40px -24px rgba(11, 31, 68, .55) } .lm-alr-av.xg .lm-alr-cam { width: 38px; height: 38px; right: 8px; bottom: 8px } .lm-alr-av.xg .lm-alr-cam svg { width: 18px; height: 18px }
.lm-alr-fi { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 420px }
.lm-alr-fi > small { font: 700 11.5px/1.2 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--azul-2, #1F4296) }
.lm-alr-fi > b { font: 600 26px/1.15 var(--f-sans); color: var(--tinta); text-wrap: balance } .lm-alr-fi > span { font: 500 14px/1.2 var(--f-sans); color: var(--texto-2) }
.lm-alr-fi ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px }
.lm-alr-fi li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 12px; border-radius: 10px; background: var(--papel); font: 500 14px/1.2 var(--f-sans) }
.lm-alr-fi li b { font: 700 15px/1 var(--f-sans); font-variant-numeric: tabular-nums; color: var(--tinta) } .lm-alr-fi li b.alto { color: var(--r-alto) } .lm-alr-fi li b.mod { color: var(--r-mod) } .lm-alr-fi li b.baixo { color: var(--r-baixo) } .lm-alr-fi li b.crit { color: var(--r-crit) }
.lm-alr-fb { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px }
.lm-alr-trilho { grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; padding: 16px 2px 4px; scrollbar-width: thin }
.lm-alr-tr { flex: none; width: 36px; height: 36px; border: 2px solid transparent; border-radius: 50%; background-color: var(--av, #0B1F44); background-size: cover; background-position: center; color: #fff; font: 700 11px/1 var(--f-sans); cursor: pointer; opacity: .6; transition: opacity .15s, transform .15s }
.lm-alr-tr[style*="background-image"] { color: transparent } .lm-alr-tr:hover { opacity: 1 } .lm-alr-tr.on { opacity: 1; border-color: var(--azul-2, #1F4296); transform: scale(1.12) } .lm-alr-tr.marc { box-shadow: 0 0 0 2px #1E8A4C }
@media (max-width: 1000px) { .lm-alr-cards { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
@media (max-width: 900px) {
  .lm-alr-ops { padding: 12px 16px } .lm-alr-dica { display: none } .lm-alr-vis { margin-left: 0 }
  .lm-alr-it { grid-template-columns: 28px 40px minmax(0, 1fr) 104px 28px; grid-template-areas: "ck av nm nt x" "ck av tg tg tg" "bar bar bar bar bar" }
  .lm-alr-ck { grid-area: ck; align-self: start }
  .lm-alr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; gap: 12px }
  .lm-alr-fila { grid-template-columns: 36px minmax(0, 1fr) 36px; padding: 20px 12px } .lm-alr-seta { width: 36px; height: 36px; font-size: 22px }
  .lm-alr-foco { flex-direction: column; gap: 16px; text-align: center } .lm-alr-av.xg { width: 128px; height: 128px; font-size: 34px } .lm-alr-fi { align-items: stretch } .lm-alr-fb { justify-content: center }
  .lm-alr-marc { padding: 10px 16px }
}

/* O CÓDIGO DO ALUNO À VISTA DO PROFESSOR (Rafael, 21/11/2026): embaixo da matrícula, em toda lista; tocar copia. A etiqueta aparece quando o
   aluno já estava no banco de alunos do Gabarito (cadastrado por outro professor da mesma instituição). */
.lm-al-cod { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; margin-top: 4px }
.lm-al-codb { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-height: 24px; max-width: 100%; padding: 4px 8px; border: 1px solid var(--fino); border-radius: 6px; background: var(--mesa); color: var(--tinta); font: 400 12px/1.4 var(--f-sans); cursor: pointer; transition: background-color .15s, border-color .15s }
.lm-al-codb small { font: 600 10px/1.4 var(--f-sans); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; color: var(--texto-2) }
.lm-al-codb b { font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; overflow-wrap: anywhere; text-align: left }
.lm-al-codb:hover:not(:disabled) { border-color: var(--azul-2); background: var(--folha) }
.lm-al-codb:focus-visible { outline: 2px solid var(--azul-2); outline-offset: 2px }
.lm-al-codb:disabled { cursor: default; opacity: .7 }
.lm-al-banco { padding: 2px 8px; border-radius: 999px; background: var(--ok-fundo); color: var(--ok); font: 600 11px/1.5 var(--f-sans); font-style: normal; white-space: nowrap }
.lm-al-row .lm-al-mat, .lm-al-it .lm-al-mat { white-space: normal; overflow: visible }
.lm-alr-card .lm-al-cod, .lm-alr-fi .lm-al-cod { justify-content: center }
.lm-alr-fi .lm-al-cod { justify-content: flex-start }
.ma-banco { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--ok-fundo); color: var(--tinta); font: 400 13px/1.5 var(--f-sans) }
.ma-banco b { color: var(--ok) }
@media (max-width: 560px) { .lm-alr-nm .lm-al-codx { display: none } } /* lista do celular: a coluna do nome é estreita; fica só "Código" */
@media (prefers-reduced-motion: reduce) { .lm-al-codb { transition: none } }

/* FOTO DO ALUNO EM TODA TELA DO SITE (Rafael, 21/11/2026: "alguns alunos colocaram suas fotos, mas não aparecem para mim"): os círculos de
   iniciais das tabelas, da página do aluno, das listas, das pastas e dos requerimentos mostram a foto quando ela existe. O app não muda. */
html:not(.nativo) :is(.av-sm, .avatar, .lm-al-ini, .lm-alc-rostos i, .rq-av)[data-foto-id][style*="background-image"] { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; color: transparent !important; }
