/* TELAS PRÓPRIAS DO APP (Rafael, 21/11/2026: "pense em um app… tudo limpo, sem muita informação… botões claros e visíveis").
   Só html.nativo; prefixo ap-. Cores pelos tokens do limpo.css e das faixas (limpo-analises.css). */
html.nativo .ap-pg { max-width: 640px; margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-left, 0px)) 24px max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 16px; font-family: var(--f-sans) }
html.nativo .ap-cab { display: flex; align-items: center; gap: 8px; padding-top: 8px }
html.nativo .ap-cab-t { min-width: 0 }
html.nativo .ap-cab h1 { margin: 0; font: 700 28px/1.15 var(--f-sans); letter-spacing: -.02em; color: var(--tinta); text-wrap: balance }
html.nativo .ap-cab p { margin: 4px 0 0; font-size: 14px; color: var(--texto-2) }
html.nativo .ap-volta { flex: none; width: 44px; height: 44px; margin-left: -8px; border: 0; border-radius: 50%; background: transparent; color: var(--azul); display: grid; place-items: center }
html.nativo .ap-volta:active { background: var(--mesa) }

/* listas no padrão do celular: um cartão branco, linhas de 60 px, seta à direita */
html.nativo .ap-grupo h2 { margin: 0 0 8px 4px; font: 600 13px/1.2 var(--f-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--texto-2) }
html.nativo .ap-lista { background: var(--folha); border: 1px solid var(--fino); border-radius: 16px; overflow: hidden }
html.nativo .ap-linha { width: 100%; min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border: 0; border-top: 1px solid var(--fino); background: transparent; color: var(--tinta); text-align: left; font: inherit }
html.nativo .ap-linha:first-child { border-top: 0 }
html.nativo .ap-linha:active { background: var(--mesa) }
html.nativo .ap-linha > svg:last-child { flex: none; color: var(--texto-3) }
html.nativo .ap-lt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px }
html.nativo .ap-lt b { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
html.nativo .ap-lt small { font-size: 13px; color: var(--texto-2) }
html.nativo .ap-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sel); color: var(--azul) }
html.nativo .ap-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--mesa) center / cover no-repeat; color: var(--azul); font: 700 14px/1 var(--f-sans) }
html.nativo .ap-av[style*="background-image"] { color: transparent }

/* barra: busca + o botão da disciplina */
html.nativo .ap-barra { display: flex; gap: 8px; align-items: center; flex-wrap: wrap }
html.nativo .ap-busca { flex: 1 1 180px; min-width: 0; height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--suave); border-radius: 12px; background: var(--folha); color: var(--texto-2) }
html.nativo .ap-busca input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 16px var(--f-sans); color: var(--tinta) }
html.nativo .ap-fd { position: relative; flex: 0 1 auto; max-width: 100%; height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 1.5px solid var(--azul); border-radius: 22px; background: var(--folha); color: var(--azul); font: 600 15px/1 var(--f-sans) }
html.nativo .ap-fd span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 58vw }
html.nativo .ap-fd.on { background: var(--azul); color: var(--branco) }
html.nativo .ap-fd select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px }

/* botões claros e visíveis */
html.nativo .ap-bt { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; border: 1.5px solid var(--azul); border-radius: 12px; background: var(--folha); color: var(--azul); font: 600 16px/1 var(--f-sans) }
html.nativo .ap-bt.cheio { background: var(--azul); color: var(--branco) }
html.nativo .ap-bt:active { transform: scale(.98); opacity: .9 }

/* provas da disciplina */
html.nativo .ap-lista-p { display: flex; flex-direction: column; gap: 12px }
html.nativo .ap-prova { background: var(--folha); border: 1px solid var(--fino); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 16px }
html.nativo .ap-prova-t { display: flex; flex-direction: column; gap: 4px; min-width: 0 }
html.nativo .ap-prova-t b { font-size: 17px; font-weight: 600; color: var(--tinta); text-wrap: balance }
html.nativo .ap-prova-t small { font-size: 14px; color: var(--texto-2) }
html.nativo .ap-tag { align-self: flex-start; margin-top: 4px; padding: 4px 10px; border-radius: 12px; background: var(--mesa); color: var(--texto-2); font-size: 13px; font-weight: 600 }
html.nativo .ap-prova-b { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
html.nativo .ap-nota { margin: 0; text-align: center; font-size: 13px; color: var(--texto-2) }
html.nativo .ap-vazio { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 16px; text-align: center; background: var(--folha); border: 1px solid var(--fino); border-radius: 16px }
html.nativo .ap-vazio b { font-size: 17px; color: var(--tinta) }
html.nativo .ap-vazio span { font-size: 14px; color: var(--texto-2) }
html.nativo .ap-vazio .ap-bt { margin-top: 8px }

/* análises */
html.nativo .ap-media { border-radius: 20px; padding: 24px; background: var(--azul); color: var(--branco); display: flex; flex-direction: column; gap: 4px }
html.nativo .ap-media small { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .78 }
html.nativo .ap-media b { font: 700 64px/1 var(--f-sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums }
html.nativo .ap-media span { font-size: 14px; opacity: .8 }
html.nativo .ap-media::after { content: ""; display: block; height: 6px; margin-top: 12px; border-radius: 3px; background: var(--fx-c, var(--branco)) }
html.nativo .ap-media.fx-alto { --fx-c: var(--fx-alto) } html.nativo .ap-media.fx-mod { --fx-c: #8FA8E6 } html.nativo .ap-media.fx-baixo { --fx-c: var(--fx-baixo) } html.nativo .ap-media.fx-crit { --fx-c: var(--fx-crit) }
html.nativo .ap-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
html.nativo .ap-card { background: var(--folha); border: 1px solid var(--fino); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0 }
html.nativo .ap-card > small { font-size: 13px; font-weight: 600; color: var(--texto-2) }
html.nativo .ap-card > b { font: 700 32px/1.1 var(--f-sans); color: var(--tinta); font-variant-numeric: tabular-nums }
html.nativo .ap-card > span { font-size: 13px; color: var(--texto-2) }
html.nativo .ap-card.alerta > b { color: var(--fx-crit) }
html.nativo .ap-bloco { gap: 12px }
html.nativo .ap-bloco h2 { margin: 0; font: 600 17px/1.2 var(--f-sans); color: var(--tinta) }
html.nativo .ap-sub { margin: -6px 0 0; font-size: 14px; color: var(--texto-2) }
html.nativo .ap-bloco .ap-bt { align-self: stretch }
html.nativo .ap-cols { display: flex; align-items: flex-end; gap: 8px; height: 150px }
html.nativo .ap-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; border: 0; background: transparent; padding: 0; font: inherit }
html.nativo .ap-col i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--tinta); font-variant-numeric: tabular-nums }
html.nativo .ap-col span { width: 100%; max-width: 40px; border-radius: 10px 10px 4px 4px; background: var(--fx-mod) }
html.nativo .ap-col small { font-size: 12px; color: var(--texto-2) }
html.nativo .fx-alto.ap-nt, html.nativo .ap-col .fx-alto, html.nativo .ap-fx .fx-alto, html.nativo .ap-fx-l i.fx-alto { background: var(--fx-alto) }
html.nativo .ap-col .fx-mod, html.nativo .ap-fx .fx-mod, html.nativo .ap-fx-l i.fx-mod { background: var(--fx-mod) }
html.nativo .ap-col .fx-baixo, html.nativo .ap-fx .fx-baixo, html.nativo .ap-fx-l i.fx-baixo { background: var(--fx-baixo) }
html.nativo .ap-col .fx-crit, html.nativo .ap-fx .fx-crit, html.nativo .ap-fx-l i.fx-crit { background: var(--fx-crit) }
html.nativo .ap-fx { display: flex; height: 14px; gap: 2px; border-radius: 7px; overflow: hidden; background: var(--mesa) }
html.nativo .ap-fx-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px }
html.nativo .ap-fx-l li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--texto-2) }
html.nativo .ap-fx-l li b { margin-left: auto; color: var(--tinta); font-variant-numeric: tabular-nums }
html.nativo .ap-fx-l i { width: 10px; height: 10px; border-radius: 3px }
html.nativo .ap-lista-in { border: 0; border-radius: 0; margin: 0 -16px -16px }
html.nativo .ap-nt { flex: none; min-width: 48px; padding: 6px 10px; border-radius: 10px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--branco) }
html.nativo .ap-nt.fx-mod { background: var(--fx-mod) } html.nativo .ap-nt.fx-baixo { background: var(--fx-baixo); color: var(--tinta) } html.nativo .ap-nt.fx-crit { background: var(--fx-crit) }

/* Início do app: seis quadrados, dois por linha, tudo na primeira tela */
html.nativo .ap-data { margin: 0 0 4px !important; font-size: 13px !important; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--texto-2) }
html.nativo .ap-qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
html.nativo .ap-q { aspect-ratio: 1 / 1; max-height: 30vh; width: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 16px; border: 1px solid var(--fino); border-radius: 20px; background: var(--folha); color: var(--tinta); text-align: left; font: inherit }
html.nativo .ap-q:active { transform: scale(.97); background: var(--mesa) }
html.nativo .ap-q-i { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--sel); color: var(--azul) }
html.nativo .ap-q b { font: 700 18px/1.15 var(--f-sans) }
html.nativo .ap-q.corr { background: var(--erro); border-color: var(--erro); color: var(--branco) }
html.nativo .ap-q.corr .ap-q-i { background: rgba(255,255,255,.18); color: var(--branco) }
html.nativo .ap-link { align-self: center; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 0; background: transparent; color: var(--azul); font: 600 15px var(--f-sans) }
/* com o Voltar da barra de cima, só o símbolo do logo (o nome não cabe ao lado do avatar) */
html.nativo .hdr-in:has(#tsVoltar:not([hidden])) .brand .wm, html.nativo .hdr-in:has(#tsVoltar:not([hidden])) .brand .ts-wm, html.nativo .hdr-in:has(#tsVoltar:not([hidden])) .brand .ts-wm-o { display: none !important }
@media (max-height: 740px) { html.nativo .ap-q { aspect-ratio: auto; height: 124px } html.nativo .ap-q-i { width: 44px; height: 44px; border-radius: 14px } html.nativo .ap-ini { gap: 12px } }

/* Análises do app com os elementos do site (Rafael, 22/11/2026: "pode colocar esses elementos"): cartão da média em vidro azul-marinho com
   a régua de tracinhos de 0 a 10 e a faixa em pílula; aprovação no meio mostrador de tracinhos */
html.nativo .ap-media { position: relative; gap: 12px; padding: 24px; border: 1px solid rgba(255, 255, 255, .16); color: #FFFFFF;
  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;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 24px 40px -28px rgba(11, 31, 68, .7) }
html.nativo .ap-media::after { content: none }
html.nativo .ap-media > small { color: rgba(255, 255, 255, .68); opacity: 1 }
html.nativo .ap-media > b { font: 300 96px/.9 var(--f-sans); letter-spacing: -.055em; margin: 8px 0 4px }
html.nativo .ap-mp { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, .78) }
html.nativo .ap-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #FFFFFF; font: 700 13px/1 var(--f-sans); font-style: normal }
html.nativo .ap-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50% }
html.nativo .ap-pill.f-alto::before { background: #4ADE94 } html.nativo .ap-pill.f-mod::before { background: #8FB0FF } html.nativo .ap-pill.f-baixo::before { background: #FFD166 } html.nativo .ap-pill.f-crit::before { background: #FF7A85 }
html.nativo .ap-esc { display: flex; flex-direction: column; gap: 8px; margin-top: 8px }
html.nativo .ap-rg { display: flex; gap: 3px; height: 22px }
html.nativo .ap-rg i { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .15) }
html.nativo .ap-rg i.on { background: #FFFFFF }
html.nativo .ap-escl { position: relative; height: 14px; font: 500 11.5px/1 ui-monospace, 'IBM Plex Mono', monospace; color: rgba(255, 255, 255, .6) }
html.nativo .ap-escl span { position: absolute; top: 0; transform: translateX(-50%) } html.nativo .ap-escl span:first-child { left: 0; transform: none } html.nativo .ap-escl .fim { right: 0; transform: none }
html.nativo .ap-aprov { align-items: stretch; gap: 8px }
html.nativo .ap-aprov > small { letter-spacing: .06em; text-transform: uppercase; font-size: 12px }
html.nativo .ap-dialw { position: relative; width: min(100%, 300px); margin: 8px auto 0 }
html.nativo .ap-dial { display: block; width: 100%; height: auto; overflow: visible }
html.nativo .ap-dial line { stroke: rgba(11, 31, 68, .1); stroke-width: 3.6; stroke-linecap: round }
html.nativo .ap-dial line.on { stroke: #1F4296; stroke: color-mix(in oklab, #1F4296, #8A2C9E calc(var(--i) * 2.4%)) }
html.nativo .ap-dialc { position: absolute; left: 0; right: 0; bottom: -2px; display: flex; flex-direction: column; align-items: center; gap: 2px }
html.nativo .ap-dialc b { font: 300 56px/1 var(--f-sans); letter-spacing: -.04em; color: var(--tinta); font-variant-numeric: tabular-nums }
html.nativo .ap-dialc span { font-size: 13px; color: var(--texto-2) }
html.nativo .ap-rod { margin-top: 4px; font-size: 13px; color: var(--texto-2) }
html.nativo .ap-at { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 12px }
html.nativo .ap-at > small { width: 100% }
/* fundo em vidro clarinho, como no site (Rafael, 22/11/2026: "só para ficar mais um pouco parecido, e vidro clarinho no fundo") */
html.nativo body.ts:has(.ap-an) {
  background:
    radial-gradient(38% 46% at 10% 14%, rgba(108, 143, 230, .32), transparent 70%),
    radial-gradient(34% 42% at 90% 26%, rgba(138, 44, 158, .22), transparent 70%),
    radial-gradient(44% 40% at 72% 96%, rgba(200, 30, 30, .15), transparent 70%),
    var(--mesa) !important;
  background-attachment: fixed !important;
}
html.nativo .ap-an .ap-card { background: linear-gradient(160deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .55)); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-color: rgba(255, 255, 255, .9); box-shadow: inset 0 1px 0 #FFFFFF, 0 20px 40px -30px rgba(11, 31, 68, .35) }
html.nativo .ap-an .ap-lista-in { background: transparent }
