/* ============================================================================
   O APP NO COMPUTADOR

   Tudo o que muda quando a tela é larga (≥ 1024px) mora aqui, depois de
   style.css e conteudo.css — no celular este arquivo não muda nada além de
   esconder as peças que só existem no computador (o primeiro bloco).

   A referência são os apps de streaming no computador: um menu lateral fixo
   com nome escrito em cada item, o topo com a busca em forma de campo, o card
   grande com um painel ao lado e fileiras que ocupam a largura toda, com
   setas. As PROPORÇÕES não mudam: capa 16:9 no card grande, pôster 0,71:1,
   miniatura de aula 16:9. Muda só quanto espaço cada coisa ganha e onde fica.

   Regras de movimento, as mesmas do resto do app: só `transform` e `opacity`
   animam, com a mesma curva (0.22, 1, 0.36, 1), e tudo para com
   `prefers-reduced-motion`. No computador o `backdrop-filter` volta a valer
   (só no topo): aqui não há Android intermediário pagando o repaint.
   ============================================================================ */

/* ── Peças que só existem no computador: fora dele, não aparecem ──────────── */

.lateral,
.topo__busca,
.story-modelo__info,
.story-modelo__ir,
.geradores-home__cota,
.geradores-home__ultima,
.atalhos-home__rotulo,
.pilula--categoria,
.trilho-seta { display: none; }

/* O palco (modelos + card grande) não existe como caixa no celular: os dois
   continuam filhos diretos da Início, com o mesmo espaço entre eles. */
.palco-home { display: contents; }

/* O cabeçalho do painel dos modelos é só pro leitor de tela no celular (os
   stories se explicam sozinhos). */
.geradores-home__cabeca {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.trilho-moldura { position: relative; }

/* ============================================================================
   ≥ 1024px
   ============================================================================ */

@media (min-width: 1024px) {
  .app-desk {
    --lateral-w: 84px;
    --gutter: clamp(24px, 2.6vw, 48px);
    --larg-desk: 1680px;
    --curva: cubic-bezier(0.22, 1, 0.36, 1);
  }
  .app-desk__main { padding-left: var(--lateral-w); min-height: 100dvh; }
  .app-desk__main > .tela { min-height: 100dvh; }

  /* A tabbar e o véu dela saem: o menu lateral faz o trabalho. */
  .app-desk .tabbar,
  .app-desk .veu-inferior { display: none; }
  .app-desk .rodape { padding-bottom: var(--s6); }
  .app-desk .rodape--sem-tabbar { padding-bottom: var(--s6); }

  /* ── O menu lateral ──────────────────────────────────────────────────── */

  .lateral {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 42;
    display: flex;
    flex-direction: column;
    gap: var(--s4);
    width: var(--lateral-w);
    padding: 22px 12px 16px;
    background: linear-gradient(180deg, #0C0918 0%, #08060F 100%);
    border-right: 1px solid var(--fio);
  }
  .lateral__marca {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .lateral__logo { display: none; height: 32px; width: auto; object-fit: contain; }
  .lateral__logo-curto { display: block; width: 36px; height: 36px; border-radius: 11px; }

  .lateral__nav {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
  }
  .lateral__nav::-webkit-scrollbar { display: none; }

  /* O fundo do item ativo: um só, que desliza (ver LateralDoApp). */
  .lateral__fundo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(103, 62, 210, 0.42), rgba(74, 42, 158, 0.26));
    box-shadow: inset 0 0 0 1px rgba(169, 140, 255, 0.28);
    pointer-events: none;
    transition: transform 0.46s var(--curva), height 0.46s var(--curva), opacity 0.2s ease;
  }
  .lateral__fundo.is-oculto { opacity: 0; }

  .lateral__secao {
    height: 1px;
    margin: 12px 10px;
    overflow: hidden;
    background: var(--fio);
    color: transparent;
    font-size: 0;
  }
  .lateral__secao:first-of-type { display: none; }

  .lateral__item {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: none;
    color: var(--txt-2);
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
  }
  .lateral__item:hover { color: var(--txt); background-color: rgba(255, 255, 255, 0.04); }
  .lateral__item.is-ativo { color: var(--txt); background-color: transparent; }
  .lateral__item.is-ativo .ico { filter: drop-shadow(0 0 8px rgba(169, 140, 255, 0.7)); }
  .lateral__item:active .lateral__icone,
  .lateral__item:active .lateral__orbe { transform: scale(0.9); }
  .lateral__icone {
    display: grid;
    place-items: center;
    flex: none;
    width: 24px;
    transition: transform 0.14s ease;
  }
  .lateral__rotulo { display: none; }

  /* Gerar: o orbe da tabbar, em miniatura. */
  .lateral__orbe {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8075FF 0%, #635BFF 50%, #FF4D8D 100%);
    box-shadow: 0 6px 18px rgba(99, 91, 255, 0.4);
    transition: transform 0.14s ease;
  }
  .lateral__orbe::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 60%, rgba(255, 255, 255, 0.7) 78%, transparent 100%);
    animation: orbe-gira 4s linear infinite;
    opacity: 0.75;
  }
  .lateral__orbe img,
  .lateral__orbe .ico {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 30%;
    background: #0B0716;
  }
  .lateral__orbe .ico { width: 18px; height: 18px; background: none; color: #fff; }

  .lateral__contador,
  .lateral__cadeado,
  .lateral__selo {
    position: absolute;
    top: 6px;
    right: 10px;
  }
  .lateral__contador {
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--roxo);
    color: #fff;
    font-family: var(--f-mono);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1;
  }
  .lateral__cadeado { color: var(--dourado-claro); }
  .lateral__tag { display: none; }
  .lateral__cadeado .ico { display: block; }

  .lateral__conta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--fio);
    border-radius: 16px;
    background: var(--cartao);
    color: var(--txt);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
  }
  .lateral__conta:hover { border-color: var(--linha-forte); background-color: var(--cartao-alto); }
  .lateral__conta.is-ativo { border-color: rgba(169, 140, 255, 0.5); }
  .lateral__conta > .ico { display: none; flex: none; color: var(--txt-3); }
  .lateral__avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--roxo-claro), var(--roxo) 70%);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
  }
  .lateral__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .lateral__conta-txt { display: none; }

  /* ── O topo ──────────────────────────────────────────────────────────── */

  .app-desk .topo {
    position: sticky;
    z-index: 30;
    width: 100%;
    max-width: calc(var(--larg-desk) + 2 * var(--gutter));
    margin-inline: auto;
    padding: 18px var(--gutter) 14px;
    background: rgba(5, 4, 10, 0.8);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
  }
  .app-desk .topo--home { position: sticky; top: var(--barra-upgrade-h, 0px); }
  .app-desk .marca__icone { display: none; }
  .app-desk .marca__pagina { font-size: 28px; }
  .app-desk .topo__acoes { gap: 10px; }
  .app-desk .topo__botao--lupa { display: none; }
  .app-desk .topo__botao:hover { background: rgba(255, 255, 255, 0.07); }
  .app-desk .topo__avatar { width: 40px; height: 40px; border-radius: 12px; margin-left: 4px; }

  /* A conversa: nada de topo (a marca está no menu). */
  .app-desk .topo--chat { position: static; padding: var(--s3) 0 0; background: none; }
  .app-desk .topo--chat .marca__logo-chat { display: none; }

  .topo__busca {
    display: flex;
    align-items: center;
    gap: 10px;
    width: clamp(260px, 28vw, 420px);
    height: 44px;
    padding: 0 8px 0 16px;
    border: 1px solid var(--linha);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--txt-3);
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: text;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  }
  .topo__busca > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topo__busca .ico { flex: none; color: var(--txt-2); }
  .topo__busca:hover { border-color: var(--linha-forte); background: rgba(255, 255, 255, 0.07); color: var(--txt-2); }
  .topo__busca kbd {
    display: grid;
    place-items: center;
    flex: none;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border: 1px solid var(--linha);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--txt-2);
  }

  /* ── Larguras: o conteúdo usa a coluna inteira ──────────────────────── */

  .app-desk .fileira-home__titulo,
  .app-desk .fileira__titulo,
  .app-desk .fileira__cabecalho,
  .app-desk .trilho-home,
  .app-desk .trilho,
  .app-desk .home__corpo,
  .app-desk .atalhos-home,
  .app-desk .atalhos-aulas,
  .app-desk .destaque-aulas {
    max-width: calc(var(--larg-desk) + 2 * var(--gutter));
    padding-inline: var(--gutter);
  }
  .app-desk .fileira__cabecalho .fileira__titulo { max-width: none; padding-inline: 0; }
  .app-desk .trilho-home,
  .app-desk .trilho { scroll-padding-inline: var(--gutter); padding-top: 10px; padding-bottom: 14px; gap: 14px; }
  .app-desk .fileira-home__titulo,
  .app-desk .fileira__titulo { font-size: 20px; }
  .app-desk .home { gap: 28px; padding-top: 4px; }
  .app-desk .fileira,
  .app-desk .fileira-home { gap: 4px; }

  /* ── O palco da Início: card grande + painel dos modelos ────────────── */

  .app-desk .home > * { order: 2; }
  .app-desk .home > .palco-home { order: 0; }
  .app-desk .home > .atalhos-home { order: 1; }

  .palco-home {
    display: grid;
    /* O card é 16:9 sempre; quem manda no tamanho dele é a altura da janela
       (a primeira fileira tem que aparecer sem rolar), e o painel fica com o
       que sobra da largura. */
    --palco-alt: clamp(340px, 54vh, 620px);
    grid-template-columns: minmax(0, calc(var(--palco-alt) * 16 / 9)) minmax(290px, 1fr);
    gap: 20px;
    align-items: stretch;
    width: 100%;
    max-width: calc(var(--larg-desk) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  .palco-home--sem-painel { grid-template-columns: minmax(0, 1fr); }
  .palco-home > .destaque-home { grid-column: 1; grid-row: 1; max-width: none; padding: 0; }
  .palco-home > .geradores-home { grid-column: 2; grid-row: 1; }

  /* A arte assenta devagar quando a tela abre: um zoom que termina parado. */
  .palco-home .card-destaque__img > img { animation: arte-assenta 1.6s var(--curva) both; }

  /* O painel */
  .geradores-home {
    position: relative;
    min-height: 0;
    gap: 14px;
    padding: 20px 14px 16px;
    overflow: hidden;
    border: 1px solid var(--fio);
    border-radius: 24px;
    background: linear-gradient(180deg, var(--cartao-alto) 0%, var(--cartao) 100%);
    animation: subir-fade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
  }
  .geradores-home__cabeca {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-inline: 6px;
  }
  .geradores-home__titulo { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
  .geradores-home__sub { font-size: 13px; line-height: 1.4; color: var(--txt-3); }

  .geradores-home__trilho {
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .story-modelo {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 10px;
    border-radius: 16px;
    text-align: left;
    transition: background-color 0.2s ease;
    animation: subir-fade 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .story-modelo:nth-child(2) { animation-delay: 0.07s; }
  .story-modelo:nth-child(3) { animation-delay: 0.14s; }
  .story-modelo:nth-child(4) { animation-delay: 0.21s; }
  .story-modelo:nth-child(n + 5) { animation-delay: 0.28s; }
  .story-modelo:hover { background-color: rgba(255, 255, 255, 0.05); }
  .story-modelo.is-atual { background-color: rgba(99, 91, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(169, 140, 255, 0.22); }
  .story-modelo:active { transform: scale(0.98); }
  .story-modelo__anel { flex: none; width: 56px; height: 56px; padding: 2px; }
  .story-modelo__foto { padding: 2px; }
  .story-modelo__nome { display: none; }
  .story-modelo__info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
  .story-modelo__info strong { font-size: 15.5px; font-weight: 700; line-height: 1.25; }
  .story-modelo__info span { overflow: hidden; font-size: 12.5px; color: var(--txt-3); text-overflow: ellipsis; white-space: nowrap; }
  .story-modelo__ir {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--txt);
    transition: transform 0.28s var(--curva), background-color 0.2s ease, color 0.2s ease;
  }
  .story-modelo__ir-txt { display: none; }
  .story-modelo:hover .story-modelo__ir { background: #fff; color: #0B0716; transform: translateX(3px); }

  /* Um modelo só (o caso comum): o painel vira o cartão dele, com a foto
     grande e a ação escrita. */
  .geradores-home--um .geradores-home__trilho { justify-content: center; }
  .geradores-home--um .story-modelo { flex-direction: column; gap: 14px; padding: 18px 10px; text-align: center; background: none; box-shadow: none; }
  .geradores-home--um .story-modelo__anel { width: clamp(96px, 9vw, 132px); height: clamp(96px, 9vw, 132px); padding: 3px; }
  .geradores-home--um .story-modelo__foto { padding: 4px; }
  .geradores-home--um .story-modelo__info { align-items: center; flex: none; }
  .geradores-home--um .story-modelo__info strong { font-size: 20px; }
  .geradores-home--um .story-modelo__ir { width: 100%; height: 46px; margin-top: 4px; background: #fff; color: #0B0716; font-size: 15px; font-weight: 700; }
  .geradores-home--um .story-modelo__ir-txt { display: inline; }
  .geradores-home--um .story-modelo:hover .story-modelo__ir { transform: none; }
  .geradores-home--um .story-modelo:hover .story-modelo__ir .ico { transform: translateX(3px); }
  .geradores-home--um .story-modelo__ir .ico { transition: transform 0.28s var(--curva); }

  /* O painel tem a altura do card (é ela que manda na linha da grade), e é
     por ela que se decide se a última sensi cabe embaixo dos modelos. */
  .geradores-home { container: painel-gerar / size; }
  .geradores-home__ultima {
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding: 12px;
    border: 1px solid var(--fio);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--txt);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
  }
  .geradores-home__ultima:hover { border-color: var(--linha-forte); background-color: rgba(255, 255, 255, 0.06); }
  .geradores-home__ultima > .ico { flex: none; color: var(--txt-3); transition: transform 0.28s var(--curva); }
  .geradores-home__ultima:hover > .ico { transform: translateX(3px); color: var(--txt); }
  .geradores-home__ultima-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
  .geradores-home__ultima-txt small { font-size: 11.5px; color: var(--txt-3); }
  .geradores-home__ultima-txt strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  /* Painel baixo (janela de notebook): a lista aperta antes de cortar um modelo. */
  @container painel-gerar (max-height: 430px) {
    .geradores-home__sub { display: none; }
    .geradores-home__trilho { gap: 2px; }
    .story-modelo { gap: 12px; padding: 6px 8px; }
    .story-modelo__anel { width: 46px; height: 46px; }
    .geradores-home__cota { padding-top: 10px; }
  }
  @container painel-gerar (min-height: 500px) {
    .geradores-home__ultima { display: flex; }
    .geradores-home__ultima ~ .geradores-home__cota { margin-top: 0; }
  }

  /* Minhas sensis: o nome já está no topo, e a página mora no menu lateral —
     o "‹ Conta" de quem chegava pelo menu da conta no celular sai daqui. */
  .app-desk .voltar-conta { display: none; }
  .app-desk .saudacao--sensis h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

  .geradores-home__cota {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding: 12px 6px 0;
    border-top: 1px solid var(--fio);
  }
  .geradores-home__cota-txt { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--txt-3); }
  .geradores-home__cota-txt b { font-family: var(--f-mono); font-size: 13px; font-weight: 600; color: var(--txt); }
  .geradores-home__cota-barra { display: block; height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
  .geradores-home__cota-barra > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--roxo), #FF5FA2);
    transform-origin: left center;
    animation: cota-enche 1.1s var(--curva) 0.3s both;
  }

  /* O card grande no computador: o texto ganha um pouco mais de ar. */
  .app-desk .card-destaque { border-radius: 24px; }
  .app-desk .card-destaque__acoes .btn { font-size: 18px; }
  .app-desk .card-destaque__acoes { max-width: 400px; }

  /* ── As pílulas: as categorias, abertas, embaixo do palco ───────────── */

  .app-desk .atalhos-home { align-items: center; gap: 8px; padding-block: 0; }
  .app-desk .atalhos-home--sem-categorias { display: none; }
  .app-desk .atalhos-home > .pilula:not(.pilula--categoria) { display: none; }
  .atalhos-home__rotulo {
    display: block;
    flex: none;
    margin-right: 6px;
    font-family: var(--f-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--txt-3);
  }
  .pilula--categoria { display: inline-flex; }
  .app-desk .pilula { min-height: 38px; transition: transform 0.12s ease, background-color 0.18s ease, border-color 0.18s ease; }
  .app-desk .pilula:hover { background-color: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); }
  .app-desk .pilula.is-ativa:hover { background-color: var(--txt); }

  /* ── As fileiras: cards maiores, mesmas proporções ──────────────────── */

  .app-desk .card-modulo,
  .app-desk .poster-tela { width: clamp(150px, 11.2vw, 224px); }
  .app-desk .card-aula { width: clamp(248px, 19vw, 360px); }
  .app-desk .top10-item { --larg: clamp(140px, 10vw, 200px); }
  .app-desk .fileira-top10--aula .top10-item { --larg: clamp(232px, 17.5vw, 330px); }

  /* As setas: no meio da fileira, nas bordas, e só do lado que tem mais. */
  .trilho-seta {
    position: absolute;
    top: calc(50% - 22px);
    z-index: 4;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--linha-forte);
    border-radius: 50%;
    background: rgba(14, 10, 26, 0.92);
    color: var(--txt);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.28s var(--curva), background-color 0.2s ease;
  }
  .trilho-seta--antes { left: max(6px, calc(var(--gutter) - 22px)); transform: translateX(-6px); }
  .trilho-seta--depois { right: max(6px, calc(var(--gutter) - 22px)); transform: translateX(6px); }
  .trilho-seta:hover { background: #fff; color: #0B0716; }
  .trilho-seta:active { transform: scale(0.92); }
  .tem-antes > .trilho-seta--antes,
  .tem-depois > .trilho-seta--depois { pointer-events: auto; }
  .tem-antes:hover > .trilho-seta--antes,
  .tem-depois:hover > .trilho-seta--depois,
  .tem-antes > .trilho-seta--antes:focus-visible,
  .tem-depois > .trilho-seta--depois:focus-visible { opacity: 1; transform: none; }

  /* A borda que esmaece: "tem mais pra lá", sem precisar passar o mouse. */
  .trilho-moldura::before,
  .trilho-moldura::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 3;
    width: calc(var(--gutter) + 36px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .trilho-moldura::before { left: 0; background: linear-gradient(90deg, var(--void) 20%, rgba(5, 4, 10, 0)); }
  .trilho-moldura::after { right: 0; background: linear-gradient(270deg, var(--void) 20%, rgba(5, 4, 10, 0)); }
  .trilho-moldura.tem-antes::before,
  .trilho-moldura.tem-depois::after { opacity: 1; }

  /* ── O "Suas sensis" e companhia, em duas colunas ───────────────────── */

  .app-desk .home__corpo {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    grid-auto-flow: row dense;
    align-items: start;
    gap: 14px 20px;
  }
  .app-desk .home__corpo > * { grid-column: 2; }
  .app-desk .home__corpo > .cartao-gerar { grid-column: 1 / -1; }
  .app-desk .home__corpo > .card,
  .app-desk .home__corpo > .cartao-fantasma { grid-column: 1; grid-row: span 3; }
  .app-desk .home__corpo > .passos { align-self: stretch; }

  /* ── O resto do app na coluna larga ─────────────────────────────────── */

  /* Toast, convite e chat ao vivo: centrados na COLUNA, não na janela, e
     sem a folga da tabbar que não existe mais. */
  .app-desk .toast { left: calc(50% + var(--lateral-w) / 2); bottom: 28px; }
  .app-desk .convite-avaliacao { left: calc(50% + var(--lateral-w) / 2); bottom: 28px; }
  .app-desk .chat-rodape { left: var(--lateral-w); }
  body:has(.app-desk) .chat-ao-vivo__bolinha { bottom: 28px; right: 28px; }
  /* O aviso de cookies mora fora do app (no layout): centrado na coluna, sem
     cobrir o menu. 84px = a largura do menu recolhido (ver --lateral-w). */
  body:has(.app-desk) .cookies { left: calc(84px + 16px); right: 16px; }
}

/* ── Menu lateral aberto, com nomes (≥ 1200px) ─────────────────────────── */

@media (min-width: 1200px) {
  .app-desk { --lateral-w: 248px; }
  body:has(.app-desk) .cookies { left: calc(248px + 16px); }
  .lateral { padding: 26px 16px 18px; gap: 22px; }
  .lateral__marca { justify-content: flex-start; padding-left: 12px; }
  .lateral__logo { display: block; }
  .lateral__logo-curto { display: none; }
  .lateral__secao {
    display: block;
    height: auto;
    margin: 18px 0 6px;
    padding-left: 14px;
    background: none;
    color: var(--txt-3);
    font-family: var(--f-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .lateral__secao:first-of-type { display: block; margin-top: 4px; }
  .lateral__item { justify-content: flex-start; padding: 0 14px; }
  .lateral__item--gerar { min-height: 60px; padding-left: 7px; }
  .lateral__rotulo { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
  .lateral__rotulo small { margin-top: 2px; font-size: 11.5px; font-weight: 500; color: var(--txt-3); }
  .lateral__contador,
  .lateral__cadeado,
  .lateral__selo { position: static; flex: none; }
  .lateral__selo { display: none; }
  .lateral__tag {
    display: inline-block;
    flex: none;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(90, 200, 250, 0.12);
    color: #8FD8FF;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
  }
  .lateral__conta { justify-content: flex-start; padding: 10px 12px 10px 10px; }
  .lateral__conta > .ico { display: block; }
  .lateral__conta-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
  .lateral__conta-txt strong,
  .lateral__conta-txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lateral__conta-txt strong { font-size: 14px; }
  .lateral__conta-txt span { font-size: 12px; color: var(--txt-3); }
}

/* ── Mouse: o card responde antes do clique ────────────────────────────── */

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .app-desk .card-modulo__poster,
  .app-desk .card-aula__thumb,
  .app-desk .poster-tela {
    transition: transform 0.32s var(--curva), box-shadow 0.32s var(--curva);
  }
  .app-desk .card-modulo:hover .card-modulo__poster,
  .app-desk .card-aula:hover .card-aula__thumb,
  .app-desk .top10-item__botao:hover .card-modulo__poster,
  .app-desk .top10-item__botao:hover .card-aula__thumb,
  .app-desk .poster-tela:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 0 2px rgba(169, 140, 255, 0.55), 0 18px 36px rgba(0, 0, 0, 0.55);
  }
  .app-desk .card-aula:hover .card-aula__play { background: #fff; color: #0B0716; }
}

@keyframes arte-assenta {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}
@keyframes cota-enche {
  from { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .lateral__fundo,
  .trilho-seta,
  .story-modelo__ir { transition: none; }
  .lateral__orbe::before,
  .palco-home .card-destaque__img > img,
  .geradores-home,
  .story-modelo,
  .geradores-home__cota-barra > span { animation: none; }
}
