/* Refinamento monocromático. Componentes e layout; nenhuma regra de dados. */
:root { --border: 1px solid var(--gray-100); }
body { background: #f5f5f5; }

h1 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.055em; }
h2 { font-weight: 600; letter-spacing: -.035em; }
.wrap { max-width: 1180px; padding: 44px 40px 64px; }
.page-head { margin-bottom: 30px; }
.page-head .eyebrow { margin-bottom: 10px; }
.page-description { margin: 12px 0 0; font-size: 14px; }
.eyebrow { font-size: 10px; letter-spacing: .15em; }
.topbar { border-bottom: var(--border); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
.topbar-inner { max-width: 1440px; min-height: 90px; padding: 16px 40px; gap: 40px; }
.brand { display: flex; align-items: center; gap: 10px; }
/* PNG com fundo transparente, gerado por scripts/extrair-logo.mjs a partir da
   arte original. Antes era um recorte por CSS sobre o JPG, com
   mix-blend-mode para simular transparência — e como a arte tem fundo verde e
   brilho ao redor, sobrava verde no cabeçalho. */
.logo-crop { display: block; flex: 0 0 74px; width: 74px; height: 26px; background: url('../assets/brand/logo-leo.png') left center / contain no-repeat; }
.story-logo .logo-crop { flex-basis: 92px; width: 92px; height: 32px; filter: invert(1); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #111; color: #fff; font-size: 29px; font-weight: 800; letter-spacing: -.1em; padding-right: 3px; }
.brand-mark span { display: none; }
.brand-name { font-size: 20px; line-height: 1.1; letter-spacing: .04em; }
.brand-name span { display: block; margin-top: 4px; font-size: 8px; letter-spacing: .12em; }
.topbar nav { justify-content: center; gap: 6px; }
.navlink { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 15px; border-radius: 10px; font-size: 12px; }
.navlink[aria-current="page"] { background: #111; color: #fff; }
.icon { width: 19px; height: 19px; flex-shrink: 0; }
.btn { border-radius: 10px; font-size: 13px; padding: 0 20px; transition: background .18s, transform .18s; }
.btn-sm { min-height: 48px; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { transform: none; }
.btn-lg { min-height: 56px; font-size: 14px; }
input, select, textarea { border-radius: 10px; background: #fafafa; padding: 12px 16px; }
.field > label { margin-bottom: 8px; font-size: 12px; }
.card { padding: 24px; border-color: #e5e5e5; }
.card-link { transition: border-color .18s, background .18s, transform .18s; }
.card-link:hover { transform: translateY(-2px); }
.tag { border-radius: 6px; font-size: 9px; letter-spacing: .045em; padding: 4px 7px; }
.tag-quiet { background: #f5f5f5; border-color: #e5e5e5; }
.avatar { border: 1px solid #e5e5e5; background: #f5f5f5; border-radius: 13px; width: 44px; height: 44px; flex-basis: 44px; font-size: 12px; }
.list-item { padding: 20px 4px; gap: 14px; }
.list-item-title { font-size: 14px; }
.list-item .small { font-size: 12px; }
.list-item-main { overflow-wrap: anywhere; }
.meter { border: 0; background: #e5e5e5; height: 5px; border-radius: 10px; }
.meter > span { border-radius: inherit; }
.overview-banner { background: #111; color: white; border-radius: 20px; padding: 32px 36px; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; }
.overview-banner::after { content: ''; position: absolute; right: 180px; top: -190px; width: 480px; height: 480px; border: 1px solid #303030; border-radius: 50%; pointer-events: none; }
.overview-banner .eyebrow { color: #aaa; }
.overview-banner h2 { font-size: 34px; line-height: 1.08; margin: 14px 0; letter-spacing: -.045em; }
.overview-banner p { color: #aaa; font-size: 12px; margin: 0; }
.banner-stat { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding-left: 32px; border-left: 1px solid #444; }
.banner-stat strong { font-size: 66px; font-weight: 600; line-height: 1; letter-spacing: -.07em; }
.banner-stat strong span { color: #999; font-size: 32px; }
.banner-stat > span { color: #aaa; font-size: 12px; }
.stat-card { padding: 24px; }
.stat-card .numeric { margin: 12px 0 8px; font-size: var(--text-metric, 32px); font-weight: 600; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 22px; align-items: start; }
.panel { padding: 26px; border: var(--border); border-radius: 18px; background: #fff; min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.count-pill { display: inline-flex; vertical-align: middle; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 7px; background: #f0f0f0; border-radius: 8px; font-size: 11px; letter-spacing: 0; margin-left: 5px; }
.text-link { font-size: 12px; text-decoration: none; white-space: nowrap; min-height: 48px; display: inline-flex; align-items: center; }
.attention-title { font-size: 19px; margin-bottom: 22px; }
.attention-panel .alert { background: #f5f5f5; border: 0; border-radius: 10px; padding: 15px; font-size: 12px; }
.attention-panel .alert .muted { white-space: nowrap; }
.attention-panel .stack > * + * { margin-top: 8px; }
.alert { background: #fff; border-radius: 12px; }
.empty { background: #fafafa; font-size: 14px; }
.auth { padding: 16px; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: #fff; gap: 24px; }
.auth-story { background: #111; color: #fff; border-radius: 20px; padding: 38px 44px; min-height: calc(100vh - 32px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-story::before { content: ''; position: absolute; inset: 0; background: url('../Logo e banner.jpg') 5% 94% / auto 205% no-repeat; filter: grayscale(1); opacity: .45; }
.auth-story::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(0,0,0,.3),rgba(0,0,0,.45) 45%,#111); }
.story-logo { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; letter-spacing: .07em; line-height: 1.05; position: relative; z-index: 1; }
.story-logo .brand-mark { background: #fff; color: #111; }
.story-logo small { font-size: 8px; letter-spacing: .12em; }
.story-content { position: relative; z-index: 1; padding: 65px 0 110px; }
.story-content .eyebrow { color: #aaa; margin-bottom: 24px; }
.story-content h1 { font-size: clamp(48px,5.6vw,84px); font-weight: 600; line-height: 1.03; letter-spacing: -.065em; }
.story-content h1 span { color: #999; }
.story-content p { color: #aaa; font-size: 14px; line-height: 1.8; margin-top: 24px; }
.story-footer { display: flex; justify-content: space-between; gap: 16px; font-size: 8px; letter-spacing: .14em; color: #aaa; position: relative; z-index: 1; }
.orbit-art { position: absolute; width: 540px; height: 540px; right: -270px; bottom: -170px; transform: rotate(-32deg); pointer-events: none; }
.orbit-art i { position: absolute; inset: 0; border: 1px solid #555; border-radius: 50%; }
.orbit-art i:nth-child(2) { inset: 35px; border-color: #777; }
.orbit-art i:nth-child(3) { inset: 70px; border-color: #999; }
.orbit-art i:nth-child(4) { inset: 105px; background: linear-gradient(135deg,#555,#161616 65%); border-color: #777; }
.auth-form-side { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { max-width: 360px; }
.auth-box > .eyebrow { margin-bottom: 18px; }
.auth-brand { font-size: 32px; line-height: 1.15; margin-bottom: 14px; font-weight: 600; }
.auth-box .btn:not(.btn-primary) { border-color: #e5e5e5; }
.auth-box > p:last-child { text-align: center; font-size: 11px; }
.student-dashboard { max-width: 1040px; }
.workout-hero { background: #111; color: #fff; padding: 36px; position: relative; overflow: hidden; }
.workout-hero::before { content: ''; position: absolute; inset: 0 0 0 auto; width: min(48%, 420px); background: linear-gradient(90deg,#111,rgba(17,17,17,.45)),url('../Logo e banner.jpg') 3% 74% / 1200px auto no-repeat; filter: grayscale(1); opacity: .7; }
.workout-hero > * { position: relative; }
.workout-hero h2 { font-size: clamp(24px,4vw,36px); margin: 16px 0 12px; max-width: 650px; }
.workout-hero .eyebrow, .workout-hero .muted { color: #aaa; }
.workout-hero .btn { flex-shrink: 0; }
.weekly-card { display: flex; align-items: center; gap: 28px; }
.weekly-content { flex: 1; }
.progress-ring { width: 112px; height: 112px; flex: 0 0 112px; border-radius: 50%; background: conic-gradient(#111 var(--progress),#e5e5e5 0); display: grid; place-items: center; position: relative; }
.progress-ring::before { content: ''; position: absolute; inset: 7px; border-radius: inherit; background: white; }
.progress-ring span { z-index: 1; font-size: 27px; font-weight: 600; }
.progress-ring small { font-size: 15px; color: #666; }
.workout-number { display: block; margin-bottom: 28px; font-size: 34px; font-weight: 600; color: #999; letter-spacing: -.06em; }
.workout-grid .card:hover .workout-number { color: #111; }
@media (min-width: 1600px) { .auth { max-width: 1600px; margin: auto; } }
@media (max-width: 1000px) {
  .topbar-inner { padding: 14px 24px; gap: 16px; }
  .navlink { padding: 10px; }
  .brand-name span { max-width: 80px; line-height: 1.4; white-space: normal; }
  .dashboard-columns { grid-template-columns: 1fr; }
  .attention-panel { grid-row: 1; }
  .auth-story { padding: 32px; }
}
@media (max-width: 700px) {
  .wrap { padding: 28px 20px 118px; }
  .topbar-inner { min-height: 76px; padding: 14px 20px; justify-content: space-between; }
  .brand-name span { max-width: none; }
  .topbar nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: var(--border); padding: 8px 8px max(8px, env(safe-area-inset-bottom)); z-index: 20; gap: 2px; justify-content: space-around; }
  .topbar { backdrop-filter: none; }
  .navlink { flex: 1; flex-direction: column; font-size: 9px; gap: 5px; padding: 8px 3px; min-width: 0; }
  .page-head.row-between { align-items: flex-start; flex-wrap: wrap; gap: 20px; }
  .page-head .btn { min-height: 48px; }
  .overview-banner { padding: 26px; gap: 24px; align-items: flex-start; flex-direction: column; }
  .overview-banner h2 { font-size: 30px; }
  .banner-stat { border-left: 0; border-top: 1px solid #444; padding: 20px 0 0; width: 100%; }
  .banner-stat strong { font-size: 48px; }
  .dashboard .grid-3 { grid-template-columns: 1fr; gap: 10px; }
  .stat-card { padding: 20px 24px; }
  .panel { padding: 22px 18px; }
  .list-item-main > .row-between { align-items: flex-start; flex-wrap: wrap; gap: 5px; }
  .list-item-title.truncate { white-space: normal; }
  .auth { display: block; padding: 12px; min-height: 100svh; }
  .auth-story { min-height: 0; padding: 24px; border-radius: 16px; }
  .story-logo { font-size: 15px; }
  .story-content { padding: 36px 0 12px; }
  .story-content .eyebrow { font-size: 8px; margin-bottom: 16px; }
  .story-content h1 { font-size: 43px; }
  .story-content h1 br:nth-of-type(2) { display: none; }
  .story-content p, .story-footer { display: none; }
  .orbit-art { width: 330px; height: 330px; right: -210px; bottom: -150px; }
  .auth-form-side { padding: 36px 16px 16px; }
  .auth-brand { font-size: 28px; }
  .auth-box > .eyebrow { display: none; }
  .workout-hero { padding: 26px; }
  .workout-hero .row-between { align-items: flex-start; flex-direction: column; gap: 24px; }
  .workout-hero .btn { width: 100%; }
  .weekly-card { padding: 22px; gap: 20px; }
  .progress-ring { width: 84px; height: 84px; flex-basis: 84px; }
  .weekly-content > .row { flex-wrap: wrap; gap: 2px 12px; }
  .workout-grid { grid-template-columns: 1fr; }
  .workout-number { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* ---- perfil do professor (painel e area do aluno) ---- */
.trainer-card { margin-top: 28px; border-radius: 16px; padding: 22px; }
.trainer-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.trainer-head h3 { font-size: 19px; margin: 2px 0; }
.trainer-head .logo-crop { flex: 0 0 64px; width: 64px; height: 23px; }
.trainer-tags { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trainer-tags li { border: 1px solid var(--gray-200); border-radius: 999px; padding: 6px 13px; font-size: 12px; }
.trainer-link { min-height: 48px; }

/* ---- financeiro ---- */
.library-feedback { border: 1px solid var(--gray-200); border-radius: 10px; padding: 12px 15px; font-size: 13px; margin-bottom: 16px; }

/* Conta no canto do cabeçalho: o avatar com o nome abre um menu com "Meu
   cadastro" e "Sair". Dois botões soltos gastavam a largura que o celular não
   tem, e "Sair" ficava do tamanho de um alvo de toque ao lado do resto. */
.topbar-conta { position: relative; display: flex; align-items: center; margin-left: auto; }

.conta-botao {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 10px 4px 4px; border: 1px solid transparent; border-radius: 999px;
  background: none; cursor: pointer; font: inherit; color: inherit; min-height: 44px;
}
.conta-botao:hover { background: #f5f5f5; }
.conta-botao[aria-expanded="true"] { background: #f0f0f0; border-color: #e5e5e5; }
.conta-botao .avatar-conta { width: 36px; height: 36px; flex-basis: 36px; border-radius: 50%; font-size: 12px; overflow: hidden; }
.conta-botao .avatar-conta img { width: 100%; height: 100%; object-fit: cover; }
.conta-nome { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conta-seta { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #737373; }

.conta-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 40;
  min-width: 200px; padding: 6px; background: #fff;
  border: 1px solid #e5e5e5; border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.12);
  display: flex; flex-direction: column;
}
.conta-item {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 10px; background: none; cursor: pointer;
  font: inherit; font-size: 14px; text-align: left; color: inherit; text-decoration: none;
}
.conta-item:hover, .conta-item:focus-visible { background: #f5f5f5; }
#meu-cadastro[aria-current="page"] { background: #111; color: #fff; }

@media (max-width: 700px) {
  /* No celular o nome sai: sobra o avatar, que já é o alvo de toque. */
  .conta-nome, .conta-seta { display: none; }
  .conta-botao { padding: 4px; }
}

/* Abas de verdade (role="tab") usam aria-selected; o estilo de .movement-tab
   só olhava aria-pressed, e a aba ativa ficava sem marcação nenhuma. */
.movement-tab[aria-selected="true"] { background: #e5e5e5; color: #111; }

/* ---------- banner da divisão de treino (editor de ficha) ---------- */

/* O card perde o padding e quem passa a tê-lo é o corpo: assim o banner preto
   sangra até a borda sem margem negativa presa ao valor do padding do card,
   que muda entre breakpoints (foi o erro do calendário). */
.card-com-banner { padding: 0; overflow: hidden; }
.dia-corpo { padding: 24px; }

.dia-banner {
  display: flex; align-items: stretch; gap: 16px;
  padding: 0 24px; background: #000; color: #fff; overflow: hidden;
}
.dia-banner-texto {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 18px 0;
}
.dia-banner-texto h3 { margin: 0; color: #fff; }
.dia-banner-titulo { font-size: 26px; letter-spacing: -.03em; }
.dia-banner-texto .small { color: #a3a3a3; }

/* A arte encosta na base do banner, como se a figura estivesse de pé nele.
   `flex-end` em vez de altura cheia: as artes têm proporções diferentes e
   esticar deformaria o corpo. */
.dia-banner-arte {
  align-self: flex-end; flex: 0 0 auto;
  height: 104px; width: auto; object-fit: contain; object-position: bottom;
}
/* AT-20: com duas artes, cada uma encolhe para o par continuar cabendo no
   banner — a medição contra os arquivos reais está no parking lot canônico
   (par Abdômen+Costas chega a 308px a 104px de altura; a 88px ele cabe). */
.dia-banner-arte-dupla { height: 88px; }

.dia-banner-acoes { align-self: center; flex: 0 0 auto; }

/* AT-20: grade de ícones 2×3 no lugar da fileira de botões — a fileira antiga
   (↑ ↓ Arte Renomear Excluir em btn-sm) ocupava ~322px e não sobrava espaço
   para a segunda arte. "Renomear" vira glifo (✎) porque é reversível; "Arte" e
   "Excluir" mantêm a palavra — ação destrutiva não fica atrás de ícone
   ambíguo por 12px de economia. */
.dia-banner-acoes-grade {
  display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(2, 1fr);
  gap: 6px; width: 132px; height: 78px;
}
.btn-icone {
  grid-column: span 2;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #404040; border-radius: 8px; background: #171717; color: #fff;
  font: inherit; font-size: 15px; line-height: 1; cursor: pointer; padding: 0;
}
.btn-icone-largo { grid-column: span 3; font-size: 12px; }
.btn-icone:hover, .btn-icone:focus-visible { background: #262626; border-color: #666; }
.btn-icone[disabled] { opacity: .4; cursor: default; }

/* Grade de escolha da arte, sobre preto — é como ela vai aparecer de verdade. */
.arte-grade {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin: var(--sp-4) 0; padding: 12px; border-radius: 12px; background: #000;
}
.arte-opcao {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 4px; border: 2px solid transparent; border-radius: 10px;
  background: none; color: #a3a3a3; font: inherit; font-size: 12px; cursor: pointer;
}
.arte-opcao img { height: 72px; width: auto; max-width: 100%; object-fit: contain; }
.arte-opcao:hover, .arte-opcao:focus-visible { border-color: #404040; color: #fff; }
.arte-opcao-ativa { border-color: #fff; color: #fff; }
.arte-opcao[disabled] { opacity: .5; cursor: default; }

@media (max-width: 700px) {
  .dia-corpo { padding: 16px; }
  .dia-banner { flex-wrap: wrap; padding: 0 16px; justify-content: center; }
  /* Com duas artes lado a lado sobravam 100px para o texto, e "Treino A —
     Peito e Tríceps" virava quatro linhas de 26px empilhadas sobre a figura.
     O texto passa a tomar a linha inteira e a arte desce para a própria, onde
     continua encostada na base do banner — a figura segue de pé nele. */
  .dia-banner-texto { padding: 14px 0; flex-basis: 100%; }
  .dia-banner-titulo { font-size: 22px; }
  /* No celular os três botões não cabem ao lado da arte: descem para uma linha
     própria e a arte encolhe, em vez de espremer o alvo de toque. */
  .dia-banner-arte { height: 72px; }
  .dia-banner-arte-dupla { height: 64px; }
  .dia-banner-acoes { align-self: center; width: 100%; padding-bottom: 14px; }
  .dia-banner-acoes-grade { width: 100%; max-width: 220px; height: auto; }
  .btn-icone { height: 40px; }
  .arte-grade { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- foto de perfil ---------- */

/* Vale para todo avatar com foto, não só o do cabeçalho: sem `overflow:hidden`
   a imagem vaza pelos cantos arredondados. */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.avatar-editor { display: flex; flex-direction: column; align-items: center; gap: 8px; }
/* O raio acompanha o tamanho: 13px num quadrado de 72px pareceria quase reto
   ao lado do avatar de 44px do resto do app. */
.avatar-grande { width: 72px; height: 72px; flex-basis: 72px; font-size: 20px; border-radius: 20px; }

/* O <input type="file"> nativo não dá para estilizar e escreve "Nenhum arquivo
   selecionado" em inglês ou português conforme o sistema. O <label> vira o
   botão e o campo fica só para o leitor de tela. */
.avatar-trocar {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 32px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 8px;
  background: var(--white); font-size: 12px; font-weight: 600; cursor: pointer;
  white-space: nowrap;
}
.avatar-trocar:hover { border-color: #111; }
.avatar-trocar:focus-within { outline: 2px solid #111; outline-offset: 2px; }
#remover-foto { margin-top: var(--sp-2); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- convite para instalar na tela inicial ---------- */

/* Faixa que sangra, logo abaixo do cabeçalho, com o mesmo recuo lateral dele:
   centralizada com largura máxima virava uma ilha preta flutuando na página. */
.convite-instalar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 40px;
  background: #000; color: #fff;
}
.convite-icone { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 40px; background: #fff; }
.convite-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.convite-detalhe { color: #a3a3a3; font-size: 12px; line-height: 1.5; }
.convite-texto b { color: #fff; }
/* O ícone de Compartilhar aparece no meio da frase: precisa da altura da letra,
   não dos 19px do ícone de navegação. */
.convite-detalhe .icon {
  width: 14px; height: 14px; vertical-align: -2px; display: inline-block; color: #fff;
}
.convite-instalar .btn { flex: 0 0 auto; min-height: 40px; }
.convite-fechar {
  flex: 0 0 auto; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 8px; background: none; color: #a3a3a3;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.convite-fechar:hover { background: #1a1a1a; color: #fff; }

@media (max-width: 700px) {
  /* O texto secundário some: no celular o que importa é o botão, e a barra
     não pode empurrar o conteúdo da tela para fora da primeira dobra. */
  /* O detalhe NÃO some no celular. Ele já sumiu uma vez, e no iPhone é ele que
     carrega a instrução de como instalar — a única forma que existe lá. O
     resultado foi um botão que, no aparelho, não fazia nada visível.
     No celular a faixa empilha em vez de esconder texto. */
  .convite-instalar {
    position: relative; padding: 10px 40px 10px 12px; gap: 10px;
    flex-wrap: wrap; align-items: flex-start;
  }
  .convite-texto { flex-basis: calc(100% - 50px); }
  .convite-instalar .btn { margin-left: 50px; }
  /* Fora do fluxo: em duas linhas de texto ele descia sozinho para uma terceira
     linha, no canto errado. */
  .convite-fechar { position: absolute; top: 6px; right: 6px; }
}
