/* ---------- Casca (3.6.0) ----------
   Celular e tablet: barra do topo translúcida com o botão Continuar e menu flutuante embaixo.
   Desktop: menu lateral com o cartão Continuar no topo. Páginas trocam com View Transitions. */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; margin-top: calc(-1 * env(safe-area-inset-top, 0px));
  background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); view-transition-name: topbar; }
.topbar-end { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
/* Logo Fluentio (marca 4.0): ícone "Pulso" (degradê e ponto da paleta) + nome "fluentio" em curvas (cor do texto). */
.logo { --lh: 34px; display: inline-flex; align-items: center; gap: calc(var(--lh) * .3); flex: none; color: var(--ink); }
.logo-icon { width: var(--lh); height: var(--lh); display: block; flex: none; border-radius: 24%; box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--brand-a) 70%, transparent); }
.wm { display: block; width: auto; aspect-ratio: 3850 / 797; flex: none; fill: currentColor; stroke: none; --brand-word-dot: var(--highlight); }
.logo-word { height: calc(var(--lh) * .74); }
.logo-side { --lh: 40px; }
@media (max-width: 380px) { .logo { --lh: 30px; } }

/* barra de leitura: mostra quanto da aula já passou (rolagem), só nas aulas */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; transform-origin: 0 50%; transform: scaleX(0); opacity: 0;
  background: linear-gradient(90deg, var(--accent), var(--glow)); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  [data-page="aula"] .scroll-progress { opacity: 1; animation: grow-x linear both; animation-timeline: scroll(root); }
}
@keyframes grow-x { to { transform: scaleX(1); } }

/* botão Continuar */
.resume { text-decoration: none; -webkit-tap-highlight-color: transparent; }
.resume[hidden] { display: none !important; }
.resume svg { width: 16px; height: 16px; flex: none; fill: currentColor; stroke: none; }
.resume-top { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 11px; border-radius: 999px; font-weight: 700; font-size: .875rem;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px -8px var(--accent); transition: transform .15s ease, filter .2s ease; }
.resume-top:active { transform: scale(.95); }
.resume-top:hover { filter: brightness(1.06); }

/* Presença da marca: herói do Painel, carregamento e rodapé de todas as páginas */
/* Painel: saudação + aula para continuar lado a lado (quando cabe) */
.dash-top { display: grid; gap: 14px; }
@container (min-width: 760px) { .dash-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: stretch; } }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 24px; border-radius: var(--r-xl); position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--glow) 26%, transparent), transparent 60%), radial-gradient(80% 120% at 0% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 65%), var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero .page-head { gap: 8px; }
.hero h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 2.9rem); letter-spacing: -.025em; }
.hero .lead { font-size: 1rem; }
.week-ring { --p: 0; width: 92px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; position: relative;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), color-mix(in srgb, var(--accent) 14%, var(--surface)) 0); }
.week-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }
.week-ring > span { position: relative; display: grid; line-height: 1.05; }
.week-ring b { font-family: var(--font-display); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.week-ring small { font-size: .625rem; font-weight: 600; color: var(--muted); }
@media (max-width: 420px) { .hero { padding: 20px; gap: 12px; } .week-ring { width: 74px; } .week-ring b { font-size: 1.05rem; } }
.brand-foot { display: flex; justify-content: center; align-items: center; min-height: 56px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.brand-foot p { font-family: var(--font-label); font-size: .75rem; color: var(--muted); }
.loading { display: grid; place-items: center; min-height: 60vh; }
.logo-icon, .logo-mark { stroke: none; }
.logo-mark { display: block; width: 64px; height: 64px; }
.brand-sub { display: block; font-family: var(--font-label); font-size: .6875rem; color: var(--muted); margin-top: 14px; }

.brand-sub { display: block; font-family: var(--font-label); font-size: .75rem; font-weight: 500; color: var(--muted); margin-top: 12px; }
.nav-group { display: none; }
/* celular: o estado vira só a bolinha (o texto continua para leitores de tela) */
@media (max-width: 680px) {
  .topbar   .topbar }

.nav { display: flex; view-transition-name: dock; }
.nav a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9375rem; border-radius: var(--r-sm); }
.nav a svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* o logo no menu lateral não segue o estilo dos ícones de traço */
.nav a svg.logo-icon { width: var(--lh); height: var(--lh); stroke: none; }
.nav a svg.wm { width: auto; height: calc(var(--lh) * .74); fill: currentColor; stroke: none; }
.nav a[aria-current="page"] { color: var(--accent); }
.plus-badge { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: linear-gradient(135deg, #FB923C, #F97316); color: #1A0E05; font-family: var(--font-label); font-size: .625rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; vertical-align: middle; }
.plus-badge.lg { font-size: .8125rem; padding: 3px 10px; margin-left: 10px; vertical-align: .35em; }
.nav-lbl { display: inline-flex; align-items: center; }
main { min-width: 0; }
main:focus { outline: none; }
.page { max-width: 960px; margin-inline: auto; padding-block: 24px 48px; padding-inline: 16px; display: grid; gap: 28px; container-type: inline-size; }
/* Rodapé alinhado em todas as telas (4.1.0): a página ocupa a altura toda e o rodapé fica sempre no fim,
   na mesma posição, com a assinatura numa linha centralizada. */
.page:has(> .brand-foot) { display: flex; flex-direction: column; min-height: 100dvh; }
.page > * { min-width: 0; }
.page > .brand-foot { margin-top: auto; }

/* ---------- Menu flutuante (celular e tablet) ----------
   Cápsula de vidro solta da borda, bolha que desliza até a seção atual,
   ícones que respondem ao toque e modo compacto ao rolar para baixo. */
.nav-pill { display: none; }
@media (max-width: 1023px) {
  .nav {
    position: fixed; z-index: 30; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%); width: min(calc(100% - 24px), 520px);
    display: flex; justify-content: space-between; gap: 2px; padding: 6px;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
    border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 28px;
    box-shadow: 0 1px 0 color-mix(in srgb, #FFFFFF 30%, transparent) inset, var(--shadow-lg);
    animation: dock-in .6s cubic-bezier(.2, .9, .3, 1.2) both;
    transition: padding .3s ease, border-radius .3s ease, width .35s cubic-bezier(.3, .8, .3, 1);
  }
  .nav .nav-head, .nav .nav-foot { display: none; }
  .nav a[data-route] {
    position: relative; z-index: 1; flex: 1 1 0; min-width: 0; min-height: 52px; flex-direction: column; justify-content: center; gap: 3px;
    padding: 7px 4px; border-radius: 22px; font-size: .6875rem; font-weight: 600; letter-spacing: .01em; color: var(--muted);
    -webkit-tap-highlight-color: transparent; transition: color .25s ease, transform .2s ease, padding .3s ease;
  }
  .nav a[data-route] svg { width: 22px; height: 22px; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
  .nav a[data-route]:active { transform: scale(.92); }
  .nav a[aria-current="page"] { color: var(--accent); }
  .nav a[aria-current="page"] svg { transform: translateY(-1px) scale(1.1); stroke-width: 2.1; }
  .nav-lbl { flex-direction: column; }
  .nav a[data-route] .nav-t { text-align: center; line-height: 1.15; }
  .nav .plus-badge { margin: 1px 0 0; font-size: .5rem; padding: 0 4px; }
  .nav-pill {
    display: block; position: absolute; left: 0; top: 0; z-index: 0; width: 0; height: 0; border-radius: 22px; pointer-events: none; opacity: 0;
    background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
  }
  .nav-pill.ready { transition: transform .45s cubic-bezier(.3, 1.35, .4, 1), width .35s ease, height .3s ease, opacity .2s ease; }
  /* rolando para baixo: só os ícones, cápsula mais baixa */
  .nav.is-compact { padding: 4px; width: min(calc(100% - 24px), 320px); }
  .nav.is-compact a[data-route] { min-height: 44px; padding: 8px 4px; font-size: 0; gap: 0; }
  .nav.is-compact .nav-lbl, .nav.is-compact .plus-badge { display: none; }
  .page { padding-bottom: calc(124px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 681px) and (max-width: 1023px) {
  /* largura do conteúdo: com left 50%, "auto" encolhe para metade da tela e o último item vazava */
  .nav { width: max-content; max-width: calc(100% - 32px); min-width: 540px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); padding: 7px; }
  /* 6 itens (5.1, com Revisar): padding menor para caber em 768px */
  .nav a[data-route] { flex: 0 0 auto; flex-direction: row; gap: 7px; min-height: 46px; padding: 10px 11px; font-size: .84375rem; }
  .nav-lbl { flex-direction: row; }
  .nav .plus-badge { margin-left: 6px; font-size: .5625rem; padding: 1px 5px; }
  .nav.is-compact { min-width: 0; width: max-content; }
  .nav.is-compact a[data-route] { padding: 10px 14px; }
  .page { padding-inline: 32px; padding-top: 32px; }
}
@keyframes dock-in { from { opacity: 0; transform: translate(-50%, 24px) scale(.96); } to { opacity: 1; transform: translateX(-50%); } }
/* ---------- Menu flutuante do desktop (5.4) ----------
   Trilho escuro solto da borda, com o logo, o botão Continuar e os itens com ícone e nome.
   A bolha da seção atual (a mesma .nav-pill do celular) desliza entre os itens com mola.
   Logo e Continuar abrem um cartão ao lado (passar o mouse ou focar) com o curso e a aula. */
@media (min-width: 1024px) {
  .topbar { display: none; }
  .shell { --rail-w: 96px; display: grid; grid-template-columns: calc(var(--rail-w) + 20px) minmax(0, 1fr); min-height: 100vh; }
  .nav {
    --rail-bg: color-mix(in srgb, var(--brand-a) 16%, #0F0D1D);
    --ink: #FFFFFF; --muted: #ABA6CC; --surface-2: rgba(255, 255, 255, .08); --line: rgba(255, 255, 255, .1);
    position: sticky; top: 16px; z-index: 30; align-self: start; margin: 16px 0 16px 16px; width: var(--rail-w); height: calc(100vh - 32px); height: calc(100dvh - 32px);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 10px 12px; color: var(--muted);
    background: radial-gradient(120% 40% at 50% 0%, color-mix(in srgb, var(--brand-b) 30%, transparent), transparent 70%), var(--rail-bg);
    border: 1px solid rgba(255, 255, 255, .08); border-radius: 32px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 48px -24px color-mix(in srgb, var(--brand-a) 55%, rgba(0, 0, 0, .6));
    animation: rail-in .7s cubic-bezier(.2, .9, .3, 1.15) both;
  }
  .nav .nav-head { display: grid; justify-items: center; gap: 12px; padding: 2px 0 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
  .rail-brand { position: relative; padding: 0; background: none; }
  .rail-brand .logo-word { display: none; }
  .rail-brand .logo-icon { width: 46px; height: 46px; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
  .rail-brand:hover .logo-icon { transform: rotate(-6deg) scale(1.06); }

  /* Continuar: botão redondo com anel pulsando; a aula aparece no cartão ao lado */
  .nav a.resume-side { position: relative; display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border-radius: 50%; color: #fff;
    background: linear-gradient(150deg, color-mix(in srgb, var(--brand-dot) 80%, #fff), var(--brand-dot)); box-shadow: 0 10px 22px -10px var(--brand-dot);
    transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
  .nav a.resume-side::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--brand-dot) 60%, transparent); animation: rail-ring 2.4s ease-out infinite; }
  .nav a.resume-side > svg { width: 20px; height: 20px; margin-left: 2px; fill: currentColor; stroke: none; }
  .nav a.resume-side:hover { transform: scale(1.08); }

  .rail-tip { position: absolute; left: calc(100% + 26px); top: 50%; z-index: 40; display: grid; gap: 3px; width: max-content; max-width: 260px; padding: 12px 16px;
    border-radius: 16px; text-align: left; color: #fff; background: var(--rail-bg); border: 1px solid var(--line); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55);
    opacity: 0; visibility: hidden; pointer-events: none; translate: -8px -50%; scale: .96; transform-origin: left center;
    transition: opacity .18s ease, translate .3s cubic-bezier(.2, .9, .3, 1.3), scale .3s cubic-bezier(.2, .9, .3, 1.3), visibility .18s; }
  .rail-tip::before { content: ""; position: absolute; left: -6px; top: 50%; width: 11px; height: 11px; margin-top: -6px; rotate: 45deg; background: inherit; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  :is(.rail-brand, .resume-side):is(:hover, :focus-visible) > .rail-tip { opacity: 1; visibility: visible; translate: 0 -50%; scale: 1; }
  .rail-tip .wm { height: 20px; color: #fff; }
  .rail-tip .brand-sub { margin: 4px 0 0; font-size: .75rem; color: var(--muted); }
  .rail-tip .resume-l { font-size: .75rem; font-weight: 600; color: var(--muted); }
  .rail-tip strong { font-size: .9375rem; line-height: 1.3; }

  /* itens: ícone em cima, nome embaixo */
  .nav a[data-route] { position: relative; z-index: 1; flex-direction: column; justify-content: center; gap: 5px; min-height: 62px; padding: 9px 4px; border-radius: 22px;
    font-size: .6875rem; font-weight: 600; letter-spacing: .01em; text-align: center; line-height: 1.15; color: var(--muted);
    transition: color .25s ease, background-color .2s ease; animation: rail-item .5s cubic-bezier(.2, .9, .3, 1.3) both; }
  .nav > a:nth-of-type(1) { animation-delay: .12s; } .nav > a:nth-of-type(2) { animation-delay: .16s; } .nav > a:nth-of-type(3) { animation-delay: .2s; }
  .nav > a:nth-of-type(4) { animation-delay: .24s; } .nav > a:nth-of-type(5) { animation-delay: .28s; } .nav > a:nth-of-type(6) { animation-delay: .32s; }
  .nav a[data-route] svg { width: 22px; height: 22px; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
  .nav a[data-route]:hover { color: #fff; background: rgba(255, 255, 255, .06); }
  .nav a[data-route]:hover svg { transform: translateY(-2px); }
  .nav a[data-route]:active { transform: scale(.94); }
  .nav a[aria-current="page"], .nav a[aria-current="page"]:hover { color: #fff; background: none; }
  .nav a[aria-current="page"] svg { stroke-width: 2.1; transform: scale(1.08); }
  .nav-lbl { flex-direction: column; gap: 3px; }
  .nav .plus-badge { margin: 0; font-size: .5rem; padding: 0 5px; }
  .nav-pill { display: block; position: absolute; left: 0; top: 0; z-index: 0; width: 0; height: 0; border-radius: 22px; pointer-events: none; opacity: 0;
    background: linear-gradient(160deg, var(--brand-b), var(--brand-a)); box-shadow: 0 12px 24px -10px var(--brand-b), inset 0 1px 0 rgba(255, 255, 255, .25); }
  .nav-pill.ready { transition: transform .5s cubic-bezier(.3, 1.35, .4, 1), height .3s ease, opacity .2s ease; }

  .nav .nav-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: grid; justify-items: center; gap: 8px; }
  .nav .bell-side { width: 42px; height: 42px; margin: 0; color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
  .nav .bell-side:hover { background: rgba(255, 255, 255, .14); }
  .nav a.nav-help { display: grid; justify-items: center; gap: 4px; width: 100%; padding: 8px 4px; border-radius: 18px; text-decoration: none; font-size: .6875rem; font-weight: 600; color: var(--muted); transition: color .2s ease, background-color .2s ease; }
  .nav a.nav-help svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .nav a.nav-help:hover { color: #fff; background: rgba(255, 255, 255, .06); }
  .nav .version { font-family: var(--font-label); font-size: .625rem; font-weight: 500; color: var(--muted); opacity: .75; text-align: center; }
  .page { padding-inline: 40px 48px; padding-block: 40px 64px; }
  .toast { bottom: 24px; }
}
/* telas baixas: itens mais justos para caber tudo sem rolar */
@media (min-width: 1024px) and (max-height: 760px) {
  .nav { gap: 2px; padding-block: 10px 8px; }
  .nav .nav-head { gap: 8px; padding-bottom: 10px; }
  .rail-brand .logo-icon { width: 40px; height: 40px; }
  .nav a.resume-side { width: 44px; height: 44px; }
  .nav a[data-route] { min-height: 52px; padding-block: 6px; }
  .nav a.nav-help { padding-block: 4px; }
}
@keyframes rail-in { from { opacity: 0; transform: translateX(-24px) scale(.97); } }
@keyframes rail-item { from { opacity: 0; transform: translateX(-10px); } }
@keyframes rail-ring { 0% { opacity: .9; transform: scale(.9); } 80%, 100% { opacity: 0; transform: scale(1.25); } }
@media (min-width: 1440px) { .page { max-width: 1080px; } }
@media (prefers-reduced-motion: reduce) { .nav, .nav a[data-route], .nav a.resume-side::before { animation: none !important; } }

/* ---------- Voltar e caminho (5.5) ----------
   Computador: pílula "‹ Semana 01" + caminho no topo da página e o Voltar no sumário fixo da aula.
   Celular e tablet: o Voltar entra na barra do topo no lugar do logo (como nos apps do aparelho). */
.backbar { display: flex; align-items: center; gap: 12px; min-width: 0; }
.back-btn, .toc-back, .top-back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 700; -webkit-tap-highlight-color: transparent; }
.back-btn svg, .toc-back svg, .top-back svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.back-btn:hover svg, .toc-back:hover svg, .top-back:hover svg { transform: translateX(-3px); }
.back-btn { padding: 7px 14px 7px 9px; border-radius: 999px; font-size: .875rem; color: var(--accent); background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent); transition: transform .2s ease, box-shadow .2s ease; animation: back-in .45s cubic-bezier(.2, .9, .3, 1.3) both; }
.back-btn:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 8px 18px -12px var(--accent); }
.back-btn:active { transform: scale(.95); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; min-width: 0; font-size: .8125rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; opacity: .6; }
.crumbs a { text-decoration: none; color: var(--muted); padding-block: 4px; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.toc-back { display: none; }
.top-back[hidden] { display: none !important; }
.top-back { min-height: 40px; padding: 6px 14px 6px 6px; margin-left: -6px; border-radius: 999px; color: var(--accent); font-size: 1rem; animation: back-in .4s cubic-bezier(.2, .9, .3, 1.3) both; }
.top-back svg { width: 24px; height: 24px; }
.top-back:active { background: var(--accent-soft); }
.topbar.has-back > .brand { display: none; }
@media (max-width: 1023px) {
  .backbar .back-btn { display: none; }
}
@media (min-width: 1024px) {
  .toc-back { display: inline-flex; flex: none; padding: 7px 12px 7px 8px; margin-right: 6px; border-radius: 999px; font-size: .8125rem; color: var(--accent); background: var(--accent-soft); }
  .lesson-toc { display: flex; align-items: center; }
  .lesson-toc-track { flex: 1; min-width: 0; }
}
@keyframes back-in { from { opacity: 0; transform: translateX(10px); } }

/* troca de página: o conteúdo desliza e esmaece; menu e barra do topo ficam parados */
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .28s cubic-bezier(.2, .8, .3, 1) both; }
/* 5.5: descendo (Aulas → semana → aula) a página entra pela direita; voltando, pela esquerda */
:root[data-nav="forward"]::view-transition-old(root) { animation: vt-out-l .2s ease both; }
:root[data-nav="forward"]::view-transition-new(root) { animation: vt-in-r .32s cubic-bezier(.2, .8, .3, 1) both; }
:root[data-nav="back"]::view-transition-old(root) { animation: vt-out-r .2s ease both; }
:root[data-nav="back"]::view-transition-new(root) { animation: vt-in-l .32s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes vt-out-l { to { opacity: 0; transform: translateX(-32px); } }
@keyframes vt-in-r { from { opacity: 0; transform: translateX(40px); } }
@keyframes vt-out-r { to { opacity: 0; transform: translateX(32px); } }
@keyframes vt-in-l { from { opacity: 0; transform: translateX(-40px); } }
::view-transition-group(dock), ::view-transition-group(topbar) { animation: none; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* ---------- Assinatura da marca ----------
   Ícone + fluentio; selo TC na cor do tema + Apps; versão (vX.Y.Z).
   No rodapé tudo vira uma linha: logo Fluentio · TC Apps · vX.Y.Z. */
.sig { --s: 1; display: grid; justify-items: center; gap: calc(10px * var(--s)); text-align: center; color: var(--ink); }
.sig-md { --s: .72; }
.sig-sm { --s: .5; }
.sig-top { display: flex; align-items: center; gap: calc(16px * var(--s)); }
.sig-icon { width: calc(76px * var(--s)); height: calc(76px * var(--s)); display: block; flex: none; border-radius: 24%; box-shadow: 0 calc(10px * var(--s)) calc(24px * var(--s)) -12px color-mix(in srgb, var(--brand-a) 65%, transparent); }
.sig-icon svg { width: 100%; height: 100%; display: block; stroke: none; }
.sig-name { display: block; color: var(--ink); }
.sig-name .wm { height: calc(3.1rem * var(--s)); }
.sig-tc { display: flex; align-items: center; gap: calc(10px * var(--s)); font-family: var(--font-display); font-weight: 700; font-size: calc(1.9rem * var(--s)); line-height: 1; }
.sig-badge { background: var(--accent); color: var(--accent-ink); border-radius: calc(10px * var(--s)); padding: calc(5px * var(--s)) calc(10px * var(--s)) calc(6px * var(--s)); letter-spacing: .02em; }
.sig-ver { display: flex; align-items: center; gap: 12px; font-family: var(--font-body); font-weight: 600; font-size: max(.75rem, calc(1.15rem * var(--s))); color: var(--muted); }
.sig-ver::before, .sig-ver::after { content: ""; width: calc(48px * var(--s)); min-width: 22px; height: 1.5px; border-radius: 2px; background: color-mix(in srgb, var(--muted) 55%, transparent); }
.loading .sig { animation: sig-in .7s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes sig-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.version-card { justify-items: center; align-content: center; gap: 12px; }
.version-card > strong { justify-self: start; }
@media (max-width: 360px) { .sig-lg { --s: .82; } }
/* rodapé: tudo numa linha pequena e apagada */

/* ---------- Loading da marca (4.0.0) ----------
   As quatro barras do ícone Fluentio sobem e descem em sequência, como uma voz falando, e o ponto final pulsa.
   Sempre centralizado; sem animação quando o aparelho pede para reduzir movimento. */
.fl-loader { --h: 44px; display: grid; justify-items: center; align-content: center; gap: 14px; text-align: center; color: var(--muted); margin-inline: auto; }
.fl-loader-lg { --h: 64px; }
.fl-loader-sm { --h: 22px; gap: 8px; grid-auto-flow: column; align-items: center; }
.fl-eq { display: flex; align-items: center; gap: calc(var(--h) * .13); height: var(--h); }
.fl-eq i { width: calc(var(--h) * .15); height: var(--h); border-radius: 99px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, var(--brand-b)), var(--accent)); transform-origin: 50% 50%; animation: fl-eq 1.1s cubic-bezier(.45, 0, .55, 1) infinite; }
.fl-eq i:nth-child(1) { --lo: .25; --hi: .45; animation-delay: -.9s; }
.fl-eq i:nth-child(2) { --lo: .35; --hi: .8; animation-delay: -.7s; }
.fl-eq i:nth-child(3) { --lo: .45; --hi: 1; animation-delay: -.5s; }
.fl-eq i:nth-child(4) { --lo: .3; --hi: .6; animation-delay: -.3s; }
.fl-eq b { width: calc(var(--h) * .19); height: calc(var(--h) * .19); margin-left: calc(var(--h) * .06); border-radius: 50%; background: var(--highlight); animation: fl-dot 1.1s ease-in-out infinite; }
.fl-loader-t { font-family: var(--font-label); font-size: .9375rem; font-weight: 500; }
.fl-loader-sm .fl-loader-t { font-size: .875rem; }
@keyframes fl-eq { 0%, 100% { transform: scaleY(var(--lo)); } 50% { transform: scaleY(var(--hi)); } }
@keyframes fl-dot { 0%, 100% { transform: scale(.7); opacity: .65; } 50% { transform: scale(1.1); opacity: 1; } }
.fl-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fl-fade .25s ease both; }
.fl-overlay .fl-loader { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px 36px; box-shadow: var(--shadow-lg); color: var(--ink); }
@keyframes fl-fade { from { opacity: 0; } }

/* ---------- Abertura do app ----------
   1) o ícone surge com um leve salto; 2) as barras da onda crescem uma a uma; 3) o ponto final aparece;
   4) o nome fluentio entra da esquerda; 5) a onda segue falando até o app ficar pronto e a tela some. */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); color: var(--ink); pointer-events: none;
  animation: splash-auto .4s 9s forwards; /* reserva: some sozinha se o app não carregar */ }
.splash::before { content: ""; position: absolute; width: min(70vmin, 520px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand-b) 26%, transparent), transparent 65%); animation: sp-glow 1.6s ease-out both; }
.splash-in { position: relative; display: grid; justify-items: center; gap: 18px; }
.splash-icon { width: 112px; height: 112px; display: block; border-radius: 24%; box-shadow: 0 22px 44px -20px color-mix(in srgb, var(--brand-a) 80%, transparent); animation: sp-pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.sp-bar { transform-box: fill-box; transform-origin: 50% 50%; animation: sp-bar .5s calc(.3s + var(--i) * .09s) cubic-bezier(.2, 1.3, .4, 1) both, sp-talk 1.2s calc(1.3s + var(--i) * .12s) ease-in-out infinite; }
.sp-dot { transform-box: fill-box; transform-origin: 50% 50%; animation: sp-dot .45s .75s cubic-bezier(.2, 1.6, .4, 1) both; }
.splash-word { height: 46px; clip-path: inset(0 100% 0 0); animation: sp-word .6s .85s cubic-bezier(.3, .8, .3, 1) forwards; }
.splash-tag { font-family: var(--font-label); font-size: .875rem; font-weight: 500; color: var(--muted); opacity: 0; animation: sp-up .5s 1.15s ease forwards; }
.splash.out { animation: splash-out .45s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes sp-pop { from { opacity: 0; transform: scale(.6) rotate(-8deg); } }
@keyframes sp-bar { from { transform: scaleY(0); opacity: 0; } }
@keyframes sp-talk { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.62); } }
@keyframes sp-dot { from { transform: scale(0); } }
@keyframes sp-word { from { clip-path: inset(0 100% 0 0); transform: translateX(-10px); } to { clip-path: inset(0 -2% 0 0); transform: none; } }
@keyframes sp-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes sp-glow { from { opacity: 0; transform: scale(.6); } }
@keyframes splash-out { to { opacity: 0; transform: scale(1.03); visibility: hidden; } }
@keyframes splash-auto { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .fl-eq i { animation: none; transform: scaleY(var(--hi)); }
  .fl-eq b { animation: none; }
  .splash-icon, .sp-bar, .sp-dot, .splash::before { animation: none; }
  .splash-word { animation: none; clip-path: none; }
  .splash-tag { animation: none; opacity: 1; }
  .splash.out { animation: splash-out .2s linear forwards; }
}

/* Rodapé (4.3.0): uma linha só. Cada peça é uma caixa de 22px centrada na vertical,
   sem ajustes de linha de base, igual no celular, no tablet e no desktop. */
.brand-foot { padding-block: 16px 18px; }
.sig-xs { --s: .3; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; line-height: 1; }
.sig-xs > div { display: flex; align-items: center; height: 22px; gap: 6px; }
.sig-xs .sig-icon { width: 22px; height: 22px; border-radius: 6px; box-shadow: none; }
.sig-xs .sig-name { display: flex; align-items: center; height: 22px; }
.sig-xs .sig-name .wm { display: block; height: 15px; }
.sig-xs .sig-tc { font-size: .8125rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.sig-xs .sig-badge { display: flex; align-items: center; height: 16px; padding: 0 5px; font-size: .625rem; line-height: 1; border-radius: 4px; }
.sig-xs .sig-ver { font-size: .75rem; font-weight: 500; }
.sig-xs .sig-tc::before, .sig-xs .sig-ver::before { content: ""; flex: none; width: 3px; min-width: 3px; height: 3px; border-radius: 50%; background: var(--muted); margin-right: 4px; }
.sig-xs .sig-ver::after { content: none; }

/* Avisos (5.0): sino na barra do topo com o número de avisos não lidos */
.bell { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: transform .15s ease, background .2s ease; }
.bell svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bell:hover { background: var(--surface-2, var(--surface)); }
.bell:active { transform: scale(.92); }
.bell-n { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--coral, #E2553A); color: #fff; font: 700 .68rem/18px var(--font-label, sans-serif); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.bell.ring svg { animation: bell-ring 1s ease 1; transform-origin: 50% 10%; }
@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(9deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .bell.ring svg { animation: none; } }
.bell-side { width: 34px; height: 34px; margin-bottom: 4px; }
