/* Gabarito — Análises numa página só, que rola, em vidro (limpo-analises-rolo.js). SÓ NO SITE: tudo em html:not(.nativo).
   Grade de 12 colunas (bento), cartões de vidro leitoso sobre o fundo das telas, um cartão azul-marinho para a média,
   números finos e grandes, tracinhos, colunas em cápsula e balão ao passar o mouse. Cores das faixas: tokens --fx-* do limpo-analises.css.
   Prefixo lr-. Espaços na escala 4 · 8 · 16 · 24 · 32 · 48 · 64. */
html:not(.nativo) .lr-pg {
  --lr-raio: 24px; --lr-tinta: #0B1F44; --lr-t2: #43526F; --lr-t3: #6B7A96; --lr-fio: rgba(11, 31, 68, .10); --lr-ease: cubic-bezier(.16, 1, .3, 1);
  max-width: 1240px; gap: 0; padding-bottom: 96px;
}
html:not(.nativo) body.ts.ts .lr-pg .la-hero { margin-bottom: 24px !important }

/* ---------- barra que acompanha a rolagem: disciplina, capítulos, imprimir e PDF ---------- */
html:not(.nativo) .lr-barra {
  position: sticky; top: calc(var(--lr-top, 0px) + 12px); z-index: 20; display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap;
  padding: 8px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .8);
  background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .62));
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(11, 31, 68, .05), 0 20px 40px -28px rgba(11, 31, 68, .35);
}
html:not(.nativo) .lr-barra .la-fd { flex: 0 1 260px; min-width: 0; margin: 0 }
html:not(.nativo) .lr-barra .la-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
html:not(.nativo) .lr-barra select {
  width: 100%; height: 44px; padding: 0 36px 0 16px; border: 1px solid var(--lr-fio); border-radius: 12px; background-color: rgba(255, 255, 255, .7);
  font: 600 15px/1 var(--f-sans); color: var(--lr-tinta); text-overflow: ellipsis; cursor: pointer;
}
html:not(.nativo) .lr-nav { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none }
html:not(.nativo) .lr-nav::-webkit-scrollbar { display: none }
html:not(.nativo) .lr-ir {
  flex: none; height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: transparent; font: 600 15px/1 var(--f-sans); color: var(--lr-t2);
  white-space: nowrap; cursor: pointer; transition: background .2s var(--lr-ease), color .2s var(--lr-ease);
}
html:not(.nativo) .lr-ir:hover { background: rgba(11, 31, 68, .06); color: var(--lr-tinta) }
html:not(.nativo) .lr-ir[aria-current="true"] { background: var(--lr-tinta); color: #fff }
html:not(.nativo) .lr-ir:focus-visible, html:not(.nativo) .lr-pg :is(.lr-col, .lr-al, .lr-fil button):focus-visible { outline: 2px solid #1F4296; outline-offset: 2px }
html:not(.nativo) .lr-acoes { display: flex; gap: 8px; margin-left: auto }
html:not(.nativo) body.ts.ts .lr-barra .lm-btn { height: 44px; min-height: 44px; padding: 0 16px; border-radius: 12px !important; font-size: 15px }

/* ---------- capítulos ---------- */
html:not(.nativo) .lr-cap { container-type: inline-size; container-name: lr; margin-top: 64px; scroll-margin-top: calc(var(--lr-top, 0px) + 96px) }
html:not(.nativo) .lr-barra + .lr-cap, html:not(.nativo) .la-demo > .lr-cap:first-child { margin-top: 32px }
html:not(.nativo) .la-demo-av + .la-demo { margin-top: 0 }
html:not(.nativo) .lr-pg > .la-demo-av { margin-top: 24px }
html:not(.nativo) .lr-ch { display: flex; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin: 0 0 24px; padding: 0 8px }
html:not(.nativo) .lr-num { flex: none; align-self: flex-start; margin-top: 8px; font: 500 13px/1 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .08em; color: var(--lr-t3) }
html:not(.nativo) .lr-cht { flex: 1 1 320px; min-width: 0 }
html:not(.nativo) .lr-h { margin: 0; font: 400 clamp(26px, 3.2cqw, 34px)/1.15 var(--f-sans); letter-spacing: -.025em; color: var(--lr-tinta); text-wrap: balance }
html:not(.nativo) .lr-hs { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: var(--lr-t2) }
html:not(.nativo) .lr-cha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
html:not(.nativo) body.ts.ts .lr-cha .lm-btn { height: 44px; min-height: 44px; border-radius: 12px !important; background: rgba(255, 255, 255, .6); border-width: 1px !important; border-color: var(--lr-fio) !important; font-size: 15px }
html:not(.nativo) body.ts.ts .lr-cha .lm-btn:hover { background: #fff }
html:not(.nativo) .lr-dentro { margin-top: 8px }

/* ---------- grade (bento) e cartão de vidro ---------- */
html:not(.nativo) .lr-b { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px }
html:not(.nativo) .lr-b > .s3 { grid-column: span 3 } html:not(.nativo) .lr-b > .s4 { grid-column: span 4 } html:not(.nativo) .lr-b > .s5 { grid-column: span 5 }
html:not(.nativo) .lr-b > .s6 { grid-column: span 6 } html:not(.nativo) .lr-b > .s7 { grid-column: span 7 } html:not(.nativo) .lr-b > .s12 { grid-column: 1 / -1 }
html:not(.nativo) .lr-b > .r2 { grid-row: span 2 }
html:not(.nativo) .lr-c {
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 168px; margin: 0; padding: 24px;
  border-radius: var(--lr-raio); border: 1px solid rgba(255, 255, 255, .82); color: var(--lr-tinta);
  background: linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .48));
  -webkit-backdrop-filter: blur(18px) saturate(1.35); backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 1px 2px rgba(11, 31, 68, .04), 0 24px 48px -32px rgba(11, 31, 68, .3);
}
html:not(.nativo) .lr-k { margin: 0; font: 600 11.5px/1.2 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--lr-t3) }
html:not(.nativo) .lr-n { font: 300 56px/1 var(--f-sans); letter-spacing: -.045em; font-variant-numeric: tabular-nums; color: var(--lr-tinta); white-space: nowrap }
html:not(.nativo) .lr-n.g { font-size: 64px }
html:not(.nativo) .lr-n.sobe { color: var(--fx-alto-t) } html:not(.nativo) .lr-n.desce { color: var(--fx-crit-t) }
html:not(.nativo) .lr-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: auto 0 0; font-size: 14px; line-height: 1.4; color: var(--lr-t2) }
html:not(.nativo) .lr-linha { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap }
html:not(.nativo) .lr-vz { margin: 0; font-size: 14.5px; color: var(--lr-t3) }
html:not(.nativo) .lr-pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; font: 600 13px/1 var(--f-sans); font-style: normal; background: rgba(11, 31, 68, .06); color: var(--lr-tinta) }
html:not(.nativo) .lr-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50% }
html:not(.nativo) .lr-pill.f-alto::before { background: var(--fx-alto) } html:not(.nativo) .lr-pill.f-mod::before { background: var(--fx-mod) }
html:not(.nativo) .lr-pill.f-baixo::before { background: var(--fx-baixo) } html:not(.nativo) .lr-pill.f-crit::before { background: var(--fx-crit) }
html:not(.nativo) .lr-alerta { background: linear-gradient(180deg, rgba(255, 244, 244, .82), rgba(255, 236, 236, .5)) }
html:not(.nativo) .lr-alerta .lr-n { color: var(--fx-crit-t) }
html:not(.nativo) .lr-avs { display: flex; padding-left: 8px } html:not(.nativo) .lr-avs .la-ini { width: 36px; height: 36px; margin-left: -8px; box-shadow: 0 0 0 2px #fff }
html:not(.nativo) .lr-avs .mais { background: var(--lr-tinta); color: #fff }

/* cartão da média: azul-marinho com as cores do vidro, número em pontos */
html:not(.nativo) .lr-media {
  --fx-alto: #4ADE94; --fx-mod: #8FB0FF; --fx-baixo: #FFD166; --fx-crit: #FF7A85; color: #fff; border-color: rgba(255, 255, 255, .16); gap: 24px;
  background: radial-gradient(110% 80% at 0% 0%, rgba(108, 143, 230, .5), transparent 60%), radial-gradient(90% 80% at 100% 100%, rgba(138, 44, 158, .46), transparent 62%), radial-gradient(60% 50% at 84% 4%, rgba(200, 30, 30, .26), transparent 70%), #0B1F44;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 32px 56px -32px rgba(11, 31, 68, .7);
}
html:not(.nativo) .lr-media .lr-k { color: rgba(255, 255, 255, .68) }
html:not(.nativo) .lr-media .lr-sub { margin-top: 0; color: rgba(255, 255, 255, .72) }
html:not(.nativo) .lr-media .lr-pill { background: rgba(255, 255, 255, .14); color: #fff }
html:not(.nativo) .lr-mnum { display: flex; align-items: flex-end; min-height: 96px; margin: auto 0 }
html:not(.nativo) .lr-n.mg { font: 300 clamp(96px, 12cqw, 136px)/.86 var(--f-sans); letter-spacing: -.055em; color: #fff }
html:not(.nativo) .lr-rg-n { height: 24px }
html:not(.nativo) .lr-esc { display: flex; flex-direction: column; gap: 8px }
html:not(.nativo) .lr-escl { position: relative; height: 14px; font: 500 11.5px/1 'IBM Plex Mono', ui-monospace, monospace; color: rgba(255, 255, 255, .6) }
html:not(.nativo) .lr-escl span { position: absolute; top: 0; transform: translateX(-50%) } html:not(.nativo) .lr-escl span:first-child { transform: none } html:not(.nativo) .lr-escl .fim { right: 0; transform: none }

/* réguas de tracinhos */
html:not(.nativo) .lr-rg { display: flex; gap: 3px; height: 16px; min-width: 0 }
html:not(.nativo) .lr-rg i { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: rgba(11, 31, 68, .1) }
html:not(.nativo) .lr-rg i.on { background: currentColor }
html:not(.nativo) .lr-rg.f-alto { color: var(--fx-alto) } html:not(.nativo) .lr-rg.f-mod { color: var(--fx-mod) } html:not(.nativo) .lr-rg.f-baixo { color: var(--fx-baixo) } html:not(.nativo) .lr-rg.f-crit { color: var(--fx-crit) }
html:not(.nativo) .lr-media .lr-rg i { background: rgba(255, 255, 255, .15) }
html:not(.nativo) .lr-media .lr-rg-n i.on { background: #fff }
html:not(.nativo) .lr-tend { display: inline-flex; align-items: baseline; gap: 8px } html:not(.nativo) .lr-tend i { font: 400 22px/1 var(--f-sans); font-style: normal }
html:not(.nativo) .lr-tend.sobe, html:not(.nativo) .lr-tend.sobe .lr-n { color: var(--fx-alto-t) } html:not(.nativo) .lr-tend.desce, html:not(.nativo) .lr-tend.desce .lr-n { color: var(--fx-crit-t) }
html:not(.nativo) .lr-pg .la-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }

/* mostrador da aprovação */
html:not(.nativo) .lr-aprov { align-items: stretch }
html:not(.nativo) .lr-dialw { position: relative; width: min(100%, 320px); margin: auto }
html:not(.nativo) .lr-dial { display: block; width: 100%; height: auto; overflow: visible }
html:not(.nativo) .lr-dial line { stroke: rgba(11, 31, 68, .1); stroke-width: 3.4; stroke-linecap: round }
html:not(.nativo) .lr-dial line.on { stroke: #1F4296; stroke: color-mix(in oklab, #1F4296, #8A2C9E calc(var(--i) * 2.2%)) }
html:not(.nativo) .lr-dialc { position: absolute; left: 0; right: 0; bottom: -4px; display: flex; flex-direction: column; align-items: center; gap: 4px }
html:not(.nativo) .lr-dialc small { font-size: 13.5px; color: var(--lr-t2) }

/* colunas em cápsula (evolução e notas) */
html:not(.nativo) .lr-cols { --h: 264px; position: relative; display: flex; justify-content: space-around; gap: 16px; height: var(--h); padding-top: 24px; margin-top: auto }
html:not(.nativo) .lr-cols.muitas { overflow-x: auto; justify-content: flex-start }
html:not(.nativo) .lr-col { flex: 1 1 0; min-width: 48px; max-width: 72px; display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: center }
html:not(.nativo) .lr-colt { position: relative; flex: 1; min-height: 0; display: block; border-radius: 999px; background: rgba(11, 31, 68, .06); transition: box-shadow .2s var(--lr-ease), transform .2s var(--lr-ease) }
html:not(.nativo) .lr-colf { position: absolute; left: 0; right: 0; bottom: 0; height: var(--v, 0%); border-radius: 999px; transition: opacity .2s }
html:not(.nativo) .lr-colf.f-alto { background: var(--fx-alto) } html:not(.nativo) .lr-colf.f-mod { background: var(--fx-mod) }
html:not(.nativo) .lr-colf.f-baixo { background: var(--fx-baixo) } html:not(.nativo) .lr-colf.f-crit { background: var(--fx-crit) var(--fx-hach) }
html:not(.nativo) .lr-colt > b { position: absolute; left: 50%; bottom: calc(var(--v, 0%) + 6px); transform: translateX(-50%); font: 600 13.5px/1 var(--f-sans); font-variant-numeric: tabular-nums; color: var(--lr-tinta); white-space: nowrap }
html:not(.nativo) .lr-coll { flex: none; height: 36px; display: flex; flex-direction: column; gap: 4px; min-width: 0 }
html:not(.nativo) .lr-coll b { font: 600 13.5px/1.2 var(--f-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
html:not(.nativo) .lr-coll small { font-size: 12px; line-height: 1.2; color: var(--lr-t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
html:not(.nativo) .lr-col:hover .lr-colt { transform: translateY(-2px) }
html:not(.nativo) .lr-col.sel .lr-colt { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--lr-tinta) }
html:not(.nativo) .lr-cols:hover .lr-col:not(:hover) .lr-colf { opacity: .45 }
html:not(.nativo) .lr-meta { position: absolute; left: 0; right: 0; bottom: calc(44px + (var(--h) - 68px) * .6); height: 0; border-top: 1px dashed rgba(11, 31, 68, .28); pointer-events: none; z-index: 1 }
html:not(.nativo) .lr-meta em { position: absolute; right: 0; bottom: 4px; font: 500 11.5px/1 'IBM Plex Mono', ui-monospace, monospace; font-style: normal; color: var(--lr-t3) }
html:not(.nativo) .lr-hist { flex: 1; display: flex; gap: 8px; min-height: 216px; padding-top: 24px }
html:not(.nativo) .lr-hb { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; text-align: center; transition: opacity .2s }
html:not(.nativo) .lr-hb small { font: 500 12px/1 'IBM Plex Mono', ui-monospace, monospace; color: var(--lr-t3) }
html:not(.nativo) .lr-hist:hover .lr-hb:not(:hover) .lr-colf { opacity: .45 }

/* faixas em cada prova (lista) e legenda */
html:not(.nativo) .lr-pl { gap: 8px }
html:not(.nativo) body.ts.ts .lr-pl .la-pr { grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 48px; gap: 12px; min-height: 56px; padding: 8px 12px; border: 1px solid transparent; border-radius: 16px !important; background: rgba(255, 255, 255, .5); box-shadow: none; transition: background .2s var(--lr-ease), border-color .2s var(--lr-ease) }
html:not(.nativo) body.ts.ts .lr-pl .la-pr:hover { background: #fff }
html:not(.nativo) body.ts.ts .lr-pl .la-pr[aria-pressed="true"] { border-color: var(--lr-tinta); background: #fff; box-shadow: none }
html:not(.nativo) .lr-pl .la-sb { height: 24px; border-radius: 999px; background: rgba(11, 31, 68, .06) } html:not(.nativo) .lr-pl .la-sg b { font-size: 12.5px }
html:not(.nativo) .lr-pl .la-pm b { font: 500 20px/1 var(--f-sans); letter-spacing: -.02em }
html:not(.nativo) .lr-leg { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: auto 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--lr-tinta) }
html:not(.nativo) .lr-leg li { display: flex; align-items: center; gap: 8px } html:not(.nativo) .lr-leg small { color: var(--lr-t3) }
html:not(.nativo) .lr-leg .la-sw, html:not(.nativo) .lr-dl .la-sw, html:not(.nativo) .lr-fil .la-sw { width: 10px; height: 10px; border-radius: 3px }

/* distribuição (rosca) */
html:not(.nativo) .lr-dn { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; margin: auto 0 }
html:not(.nativo) .lr-dn .la-donut { width: 132px; height: 132px } html:not(.nativo) .lr-dn .la-donut circle { stroke-width: 6; transition: opacity .2s }
html:not(.nativo) .lr-dn .la-dc b { font: 300 32px/1 var(--f-sans); letter-spacing: -.04em }
html:not(.nativo) .lr-dl { flex: 1 1 168px; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none }
html:not(.nativo) .lr-dl li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 2.6em; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 14px; cursor: default; transition: background .2s, opacity .2s }
html:not(.nativo) .lr-dl li:hover { background: rgba(11, 31, 68, .05) }
html:not(.nativo) .lr-dl span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
html:not(.nativo) .lr-dl b { font-weight: 600; font-variant-numeric: tabular-nums } html:not(.nativo) .lr-dl small { text-align: right; font-size: 13px; color: var(--lr-t3); font-variant-numeric: tabular-nums }

/* questões e temas */
html:not(.nativo) .lr-qs, html:not(.nativo) .lr-tm { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none }
html:not(.nativo) .lr-qs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: end }
html:not(.nativo) .lr-qs .lr-rg { grid-column: 1 / -1; height: 12px }
html:not(.nativo) .lr-tm li { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) 3.4em; gap: 16px; align-items: center }
html:not(.nativo) .lr-qn { display: flex; flex-direction: column; gap: 2px; min-width: 0 }
html:not(.nativo) .lr-qn b { font: 600 14.5px/1.3 var(--f-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap } html:not(.nativo) .lr-qn small { font-size: 12.5px; color: var(--lr-t3) }
html:not(.nativo) .lr-qp { font: 500 17px/1 var(--f-sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-align: right }

/* alunos (linhas) e filtros */
html:not(.nativo) .lr-fil { display: flex; flex-wrap: wrap; gap: 8px }
html:not(.nativo) .lr-fil button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--lr-fio); border-radius: 999px; background: rgba(255, 255, 255, .55); font: 600 13.5px/1 var(--f-sans); color: var(--lr-tinta); cursor: pointer; white-space: nowrap; transition: background .2s var(--lr-ease), color .2s var(--lr-ease) }
html:not(.nativo) .lr-fil button b { font-weight: 500; color: var(--lr-t3); font-variant-numeric: tabular-nums }
html:not(.nativo) .lr-fil button:hover { background: #fff }
html:not(.nativo) .lr-fil button[aria-pressed="true"] { background: var(--lr-tinta); border-color: var(--lr-tinta); color: #fff } html:not(.nativo) .lr-fil button[aria-pressed="true"] b { color: rgba(255, 255, 255, .7) }
html:not(.nativo) .lr-provas button { height: 44px; padding: 0 16px; font-size: 15px }
html:not(.nativo) .lr-als { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; padding: 0; list-style: none }
html:not(.nativo) .lr-als.rola { max-height: 288px; overflow: auto }
html:not(.nativo) .lr-al { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 4px 8px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left }
html:not(.nativo) button.lr-al { cursor: pointer; transition: background .2s var(--lr-ease) } html:not(.nativo) button.lr-al:hover { background: rgba(11, 31, 68, .05) }
html:not(.nativo) .lr-al small { font-size: 13px; color: var(--lr-t3); font-variant-numeric: tabular-nums; white-space: nowrap }
html:not(.nativo) .lr-al > b { flex: none; min-width: 2.4em; text-align: right; font: 600 15px/1 var(--f-sans); font-variant-numeric: tabular-nums }
html:not(.nativo) .lr-al > b.sobe { color: var(--fx-alto-t) } html:not(.nativo) .lr-al > b.desce { color: var(--fx-crit-t) }
html:not(.nativo) .lr-pt { flex: none; width: 8px; height: 8px; border-radius: 50% }
html:not(.nativo) .lr-pt.f-alto { background: var(--fx-alto) } html:not(.nativo) .lr-pt.f-mod { background: var(--fx-mod) } html:not(.nativo) .lr-pt.f-baixo { background: var(--fx-baixo) } html:not(.nativo) .lr-pt.f-crit { background: var(--fx-crit) }

/* destacar uma faixa: as outras apagam (rosca, colunas e linhas do capítulo) */
html:not(.nativo) .lr-cap[data-hl="alto"] :is(.lr-hb, .lr-dl li, .lr-als li)[data-fxk]:not([data-fxk="alto"]), html:not(.nativo) .lr-cap[data-hl="mod"] :is(.lr-hb, .lr-dl li, .lr-als li)[data-fxk]:not([data-fxk="mod"]),
html:not(.nativo) .lr-cap[data-hl="baixo"] :is(.lr-hb, .lr-dl li, .lr-als li)[data-fxk]:not([data-fxk="baixo"]), html:not(.nativo) .lr-cap[data-hl="crit"] :is(.lr-hb, .lr-dl li, .lr-als li)[data-fxk]:not([data-fxk="crit"]) { opacity: .28 }
html:not(.nativo) .lr-cap[data-hl="alto"] .la-donut circle:not(.f-alto):not(.trilho), html:not(.nativo) .lr-cap[data-hl="mod"] .la-donut circle:not(.f-mod):not(.trilho),
html:not(.nativo) .lr-cap[data-hl="baixo"] .la-donut circle:not(.f-baixo):not(.trilho), html:not(.nativo) .lr-cap[data-hl="crit"] .la-donut circle:not(.f-crit):not(.hach):not(.trilho) { opacity: .16 }

/* ---------- os blocos que vêm das telas antigas (cada aluno, estatística, todas as disciplinas) entram no mesmo vidro ---------- */
html:not(.nativo) body.ts.ts .lr-pg :is(.la-card, .la-fc, .le-card)::before, html:not(.nativo) body.ts.ts .lr-pg :is(.la-card, .la-fc, .le-card)::after { content: none }
html:not(.nativo) body.ts.ts .lr-pg :is(.la-card, .le-card) {
  border-radius: var(--lr-raio) !important; border: 1px solid rgba(255, 255, 255, .82) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .48));
  -webkit-backdrop-filter: blur(18px) saturate(1.35); backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 1px 2px rgba(11, 31, 68, .04), 0 24px 48px -32px rgba(11, 31, 68, .3) !important;
}
html:not(.nativo) .lr-pg .la-bg { gap: 16px } html:not(.nativo) .lr-pg .la-ad { gap: 16px }
html:not(.nativo) .lr-pg .la-h2 { font: 600 11.5px/1.2 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--lr-t3) }
html:not(.nativo) .lr-pg .la-ah .la-h2, html:not(.nativo) .lr-pg .la-dcard .la-h2 { font: 500 22px/1.2 var(--f-sans); letter-spacing: -.02em; text-transform: none; color: var(--lr-tinta) }
html:not(.nativo) .lr-pg .la-res { border: 0; background: none; padding: 0 8px }
html:not(.nativo) .lr-pg .la-alul { max-height: 560px }
html:not(.nativo) body.ts.ts .lr-pg .la-ai { border-radius: 14px; border-color: transparent; background: transparent }
html:not(.nativo) body.ts.ts .lr-pg .la-ai:hover { background: rgba(255, 255, 255, .7) }
html:not(.nativo) body.ts.ts .lr-pg .la-ai[aria-pressed="true"], html:not(.nativo) body.ts.ts .lr-pg .la-ai[aria-current="true"] { background: #fff; border-color: var(--lr-tinta); box-shadow: none }
html:not(.nativo) .lr-pg .le-k { border-radius: 14px; border-color: var(--lr-fio); background: rgba(255, 255, 255, .55) }
html:not(.nativo) .lr-pg .le-k b { font: 400 24px/1.15 var(--f-sans); letter-spacing: -.02em }

/* ---------- balão ---------- */
html:not(.nativo) .lr-tip {
  position: fixed; left: 0; top: 0; z-index: 4500; min-width: 152px; max-width: 280px; padding: 10px 12px; border-radius: 14px; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(11, 31, 68, .92); color: #fff; font: 400 12.5px/1.5 var(--f-sans, 'Instrument Sans', Inter, system-ui, sans-serif);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 16px 32px -16px rgba(11, 31, 68, .6); opacity: 0; transition: opacity .15s;
}
html:not(.nativo) .lr-tip.on { opacity: 1 }
html:not(.nativo) .lr-tip-t { margin-bottom: 4px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
html:not(.nativo) .lr-tip-r { display: flex; justify-content: space-between; gap: 16px } html:not(.nativo) .lr-tip-r span { color: rgba(255, 255, 255, .7) }
html:not(.nativo) .lr-tip-r b { font: 500 12.5px/1.5 'IBM Plex Mono', ui-monospace, monospace }

/* ---------- movimento: os cartões sobem um a um; os gráficos do capítulo que mudou se desenham ---------- */
html:not(.nativo) .lr-anima:not(.lr-ja) :is(.lr-c, .lr-ch, .lr-cap > .la-bg, .lr-cap > .la-demo) { opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .7s ease, transform .9s var(--lr-ease) }
html:not(.nativo) .lr-anima:not(.lr-ja) :is(.lr-c, .lr-ch, .lr-cap > .la-bg, .lr-cap > .la-demo).lr-in { opacity: 1; transform: none }
html:not(.nativo) .lr-novo .lr-colf { animation: lr-sobe .8s var(--lr-ease) both }
html:not(.nativo) .lr-novo .lr-colt > b { animation: lr-surge .5s .35s ease both }
html:not(.nativo) .lr-novo .lr-rg { animation: lr-corre .9s var(--lr-ease) both }
html:not(.nativo) .lr-novo .lr-dial line.on { animation: lr-acende .5s ease both; animation-delay: calc(var(--i) * 18ms) }
@keyframes lr-sobe { from { clip-path: inset(100% 0 0 0 round 999px) } to { clip-path: inset(0 0 0 0 round 999px) } }
@keyframes lr-surge { from { opacity: 0 } to { opacity: 1 } }
@keyframes lr-corre { from { clip-path: inset(0 100% 0 0) } to { clip-path: inset(0 0 0 0) } }
@keyframes lr-acende { from { opacity: .12 } to { opacity: 1 } }
@media (prefers-reduced-motion: reduce) {
  html:not(.nativo) .lr-pg *, html:not(.nativo) .lr-pg *::before { animation: none !important; transition: none !important }
  html:not(.nativo) .lr-anima :is(.lr-c, .lr-ch, .lr-cap > .la-bg, .lr-cap > .la-demo) { opacity: 1 !important; transform: none !important }
}

/* ---------- telas menores: a grade segue a largura do capítulo ---------- */
@container lr (max-width: 1080px) {
  html:not(.nativo) .lr-b > :is(.s3, .s4, .s5, .s6, .s7) { grid-column: span 6 }
  html:not(.nativo) .lr-b > :is(.lr-evol, .lr-quem, .s7) { grid-column: 1 / -1 }
}
@container lr (max-width: 640px) {
  html:not(.nativo) .lr-b { gap: 12px } html:not(.nativo) .lr-b > * { grid-column: 1 / -1 !important; grid-row: auto !important }
  html:not(.nativo) .lr-c { padding: 20px; min-height: 0 }
  html:not(.nativo) .lr-tm li { grid-template-columns: minmax(0, 1fr) 3.4em } html:not(.nativo) .lr-tm .lr-rg { grid-column: 1 / -1; grid-row: 2 }
  html:not(.nativo) .lr-cols { --h: 232px; gap: 8px }
}
@media (max-width: 760px) {
  html:not(.nativo) .lr-barra { position: static; border-radius: 16px }
  html:not(.nativo) .lr-barra .la-fd { flex: 1 1 100% } html:not(.nativo) .lr-nav { flex: 1 1 100% } html:not(.nativo) .lr-acoes { flex: 1 1 100%; margin-left: 0 }
  html:not(.nativo) .lr-acoes .lm-btn { flex: 1 1 0; justify-content: center }
  html:not(.nativo) .lr-cap { margin-top: 48px } html:not(.nativo) .lr-ch { padding: 0 }
  html:not(.nativo) .lr-fil button { height: 44px }
}

/* ---------- impressão (e "salvar como PDF" da janela de imprimir): a mesma página em papel branco ---------- */
@media print {
  html:not(.nativo) body.ts.ts { background: #fff !important }
  html:not(.nativo) :is(.hdr, .rodape, .ld-foot, #bnav, .lr-barra, .lr-tip, .lr-cha, .la-demo-av .lm-btn, .musica, #musica, .lm-assin) { display: none !important }
  html:not(.nativo) body.ts.ts .lr-pg { max-width: none; padding: 0 }
  html:not(.nativo) body.ts.ts .lr-pg .la-hero { background: none !important; box-shadow: none !important; clip-path: none !important; padding: 0 0 12px !important; margin: 0 0 8px !important; border-bottom: 1px solid #D5DCE8 }
  html:not(.nativo) body.ts.ts .lr-pg .la-hero :is(h1, p, span, b) { color: #0B1F44 !important }
  html:not(.nativo) .lr-cap { margin-top: 24px }
  html:not(.nativo) .lr-c, html:not(.nativo) body.ts.ts .lr-pg :is(.la-card, .le-card) { background: #fff !important; border: 1px solid #D5DCE8 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; break-inside: avoid; opacity: 1 !important; transform: none !important }
  html:not(.nativo) .lr-ch { break-after: avoid; opacity: 1 !important; transform: none !important }
  html:not(.nativo) .lr-media { background: #0B1F44 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact }
  html:not(.nativo) .lr-pg * { -webkit-print-color-adjust: exact; print-color-adjust: exact; animation: none !important; transition: none !important }
  html:not(.nativo) .lr-pg :is(.lr-als.rola, .la-alul) { max-height: none !important; overflow: visible !important }
  html:not(.nativo) .lr-pg .la-bg { grid-template-columns: minmax(0, 1fr) } html:not(.nativo) .lr-pg .la-al { display: none }
}

/* ---------- etiqueta "exemplo" (disciplina sem prova corrigida) ---------- */
html:not(.nativo) .lr-ex { display: inline-block; margin-left: 12px; padding: 4px 10px; border-radius: 999px; vertical-align: middle; background: rgba(11, 31, 68, .08); font: 600 11.5px/1.2 var(--f-sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--lr-t2) }

/* ---------- todas as disciplinas: uma linha por disciplina ---------- */
html:not(.nativo) .lr-baixo { min-height: 0 }
html:not(.nativo) .lr-dlist { display: flex; flex-direction: column; margin: 0 -8px; padding: 0; list-style: none }
html:not(.nativo) .lr-dlist li + li { border-top: 1px solid var(--lr-fio) }
html:not(.nativo) .lr-dis { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 4.5em 3em 16px; align-items: center; gap: 24px; width: 100%; min-height: 64px; padding: 8px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .2s var(--lr-ease) }
html:not(.nativo) .lr-dis:hover { background: rgba(255, 255, 255, .7) } html:not(.nativo) .lr-dis:focus-visible { outline: 2px solid #1F4296; outline-offset: 2px }
html:not(.nativo) .lr-dis .la-sb { height: 16px; border-radius: 999px; background: rgba(11, 31, 68, .06) } html:not(.nativo) .lr-dis .la-sg b { display: none }
html:not(.nativo) .lr-dis > svg { color: var(--lr-t3) }
html:not(.nativo) .lr-dt { font: 600 13.5px/1 var(--f-sans); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; color: var(--lr-t3) }
html:not(.nativo) .lr-dt.sobe { color: var(--fx-alto-t) } html:not(.nativo) .lr-dt.desce { color: var(--fx-crit-t) }
html:not(.nativo) .lr-dm { font: 400 24px/1 var(--f-sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-align: right }
html:not(.nativo) .lr-discs button { height: 44px; padding: 0 16px; font-size: 15px }
@container lr (max-width: 640px) {
  html:not(.nativo) .lr-dis { grid-template-columns: minmax(0, 1fr) 3em 16px; gap: 8px 12px } html:not(.nativo) .lr-dis .la-sb { grid-column: 1 / -1; grid-row: 2 } html:not(.nativo) .lr-dt { display: none }
}
html:not(.nativo) .lr-al .lr-qn { flex: 1 }
