/* =====================================================================
   ui2, familia d-item: PAGINA DO ITEM (mockup item.html, gpltimes 01-d/01-m)
   ---------------------------------------------------------------------
   Faixa: capa + migalha + titulo com versao e pagina do item + meta +
   abas-ancora. Corpo: .with-aside; o cartao "Como baixar" sobe e invade o
   fim da faixa. No celular a coluna principal vira display:contents e o
   cartao entra logo depois da faixa de dados (order), sem duplicar markup.

   Metade desta folha e PELE de markup de plugin, que segue sendo o de hoje
   (download, versoes anteriores, downloads alternativos, avaliacao, guia de
   instalacao, FAQ, favoritos, modal de reporte). Os seletores com #versoes /
   .buy / .item-desc existem para ganhar das folhas dos plugins sem tocar nelas.
   So tokens: nenhuma cor, fonte, raio ou sombra literal.
   ===================================================================== */
.ui2-item {
  --di-mask-dl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E");
  --di-mask-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
  --di-mask-cal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
  --di-mask-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 8 4.5v9L12 21l-8-4.5v-9L12 3Z'/%3E%3Cpath d='m4 7.5 8 4.5 8-4.5M12 12v9'/%3E%3C/svg%3E");
  --di-mask-more: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.6'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E");
}
.di-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------ faixa */
.item-band { padding: 30px 0 0; }
.item-band-grid { row-gap: 0; }
.item-band-grid > .item-hd { grid-column: 1 / -1; }
.item-hd { display: flex; align-items: center; gap: 28px; }
.item-capa { position: relative; width: 310px; flex: none; } /* era 240 (pedido do Marcus, 12/10/2026) */
.item-cover { width: 100%; box-shadow: var(--sh-card); border: 6px solid var(--surface); } /* moldura branca de 6px (pedido do Marcus, 12/10/2026) */
.item-cover b { font-size: 3.2rem; }
.item-flags { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; gap: 5px; }
.item-hd-main { min-width: 0; }
.item-hd .crumbs { margin-bottom: 8px; }
.item-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.item-title h1 { overflow-wrap: anywhere; }
.item-title--longo h1 { font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2rem); line-height: 1.15; } /* teto 2rem (era 2.3rem), pedido do Marcus 12/10/2026 */
.item-title .pill { font-size: 12.5px; padding: 4px 11px; }
.item-title .pill .i { width: 13px; height: 13px; }
/* "Pagina do item" discreto (pedido do Marcus, 11/10/2026): era um selo verde cheio que puxava o
   olho para fora do site; agora e uma pilula de contorno, cinza, que so ganha cor no hover */
.item-demo { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 500; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.item-demo::before { display: none; }
.item-demo .i { width: 12px; height: 12px; opacity: .8; }
.item-demo:hover { color: var(--accent-ink); border-color: #e3cfd8; background: var(--accent-soft); }
.item-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; font-size: var(--fs-sm); color: var(--muted); }
.item-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.item-meta .i { width: 16px; height: 16px; }
.item-meta b { color: var(--ink); font-weight: 600; }
.item-meta a { color: var(--accent); font-weight: 600; }
.item-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* nota dos clientes (ultrapack-avaliacoes) sob a capa */
.item-aval .up-aval { margin: 12px 0 0; align-items: center; gap: 6px; font-family: var(--font-body); font-size: var(--fs-xs); color: var(--muted); }
.item-aval .up-aval-media { color: var(--ink); }
.item-aval .up-aval-votar button { font-size: 18px; }

/* abas-ancora no pe da faixa (sublinhado, como no gpltimes) */
.item-nav { display: flex; gap: 4px; margin-top: 28px; overflow-x: auto; scrollbar-width: none; }
.item-nav::-webkit-scrollbar { display: none; }
.item-nav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px 13px; white-space: nowrap;
  font-weight: 600; font-size: var(--fs-sm); color: var(--text); border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.item-nav a .i { width: 16px; height: 16px; }
.item-nav a:hover { color: var(--ink); }
.item-nav a.is-on { color: var(--accent); border-bottom-color: var(--accent); }
.item-nav small { padding: 1px 7px; border-radius: var(--r-pill); background: var(--surface-3); font-size: 11px; color: var(--muted); }

/* ------------------------------------------------------------ corpo */
.item-body { padding-top: 28px; padding-bottom: var(--sec-y); }
.item-aside { margin-top: -72px; z-index: 2; }
.item-sec { scroll-margin-top: 20px; }
.item-h2 { font-size: calc(var(--fs-h3) * 1.2); margin-bottom: 14px; }
@media (min-width: 981px) {
  .item-main > * + * { margin-top: 44px; }
  .item-main > .item-desc, .item-main > .item-pede { margin-top: 26px; }
}
.item-alerta { grid-column: 1 / -1; }
.item-alerta .up-rc-wall, .item-alerta .download-error, .item-alerta > div {
  margin: 0; padding: 16px 20px; border: 1px solid var(--amber-soft); border-left: 4px solid var(--amber);
  border-radius: var(--r-card); background: var(--amber-soft); color: var(--ink); font-family: var(--font-body); font-size: var(--fs-sm);
}
.item-alerta a { color: var(--accent); font-weight: 600; }
.item-alerta .up-rc-wall__cta { background: var(--btn-bg); border-radius: var(--r-pill); }

/* faixa de dados: ate 4 celulas; a largura do cartao decide a grade */
.strip { overflow: hidden; container-type: inline-size; }
.strip-grid { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.strip-cell { display: flex; align-items: center; gap: 12px; padding: 18px; min-width: 0; }
.strip-cell + .strip-cell { border-left: 1px solid var(--line-soft); }
.strip-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); }
.strip-ico .i { width: 19px; height: 19px; }
.strip-ico--ok { background: var(--green-soft); color: var(--green); }
.strip-ico--warn { background: var(--amber-soft); color: var(--amber); }
.strip-ico--mut { background: var(--surface-3); color: var(--muted); }
.strip-txt { display: grid; gap: 2px; min-width: 0; }
.strip-txt small { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.strip-txt b { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-weight: 700; color: var(--ink); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.strip-txt b.is-ok { color: var(--green); }
.strip-txt b.is-mut { color: var(--muted); }
.strip-txt b a:not(.pill) { color: var(--accent); }
/* "UAU Ready" ao lado do "Sim" e menor (pedido do Marcus, 12/10/2026): so nesta celula,
   a .pill global nao muda; num celular estreito demais ainda pode quebrar */
.strip-txt b:has(> .pill) { flex-wrap: nowrap; gap: 5px; overflow-wrap: normal; white-space: nowrap; }
.strip-txt b > .pill { flex: none; padding: 1px 6px; font-size: 10px; line-height: 1.4; letter-spacing: 0; }
@media (max-width: 340px) { .strip-txt b:has(> .pill) { flex-wrap: wrap; } }
.strip-ft {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap;
  padding: 12px 18px; background: var(--surface-2); border-top: 1px solid var(--line-soft);
}
.strip-ft p { font-size: var(--fs-sm); color: var(--muted); }
.strip-ft .flex { gap: 8px; }
@container (max-width: 700px) {
  .strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-cell:nth-child(odd) { border-left: 0; }
  .strip-cell:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .strip-grid--impar .strip-cell:last-child { grid-column: 1 / -1; } /* 3 celulas: a ultima ocupa a linha */
}
@container (max-width: 460px) {
  .strip-grid { grid-template-columns: minmax(0, 1fr); }
  .strip-cell { padding: 11px 16px; border-left: 0; }
  .strip-cell + .strip-cell { border-left: 0; border-top: 1px solid var(--line-soft); }
  .strip-ico { width: 32px; height: 32px; }
  .strip-ico .i { width: 16px; height: 16px; }
  .strip-txt { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .strip-txt small { font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0; text-transform: none; }
  .strip-txt b { justify-content: flex-end; text-align: right; }
  .strip-ft { padding: 12px 16px 14px; }
  .strip-ft p { display: none; }
  .strip-ft .flex { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); } /* um botao por linha: "Pedir atualizacao" nao cabia na metade a 390 (pt, es) */
}
@container (max-width: 340px) {
  .strip-ft .flex { grid-template-columns: minmax(0, 1fr); }
}
/* Safari < 16 (iOS 14/15) nao tem container query: as MESMAS regras por
   largura de janela. A faixa mede a coluna principal: ate 640 px e a janela
   menos 34 px; de 641 a 980, menos 50; acima de 980, a coluna ao lado do
   cartao (janela, no maximo 1200, menos 462). Dai os cortes 750/1162, 494 e 374. */
@supports not (container-type: inline-size) {
  @media (max-width: 750px), (min-width: 981px) and (max-width: 1162px) {
    .strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .strip-cell:nth-child(odd) { border-left: 0; }
    .strip-cell:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
    .strip-grid--impar .strip-cell:last-child { grid-column: 1 / -1; }
  }
  @media (max-width: 494px) {
    .strip-grid { grid-template-columns: minmax(0, 1fr); }
    .strip-cell { padding: 11px 16px; border-left: 0; }
    .strip-cell + .strip-cell { border-left: 0; border-top: 1px solid var(--line-soft); }
    .strip-ico { width: 32px; height: 32px; }
    .strip-ico .i { width: 16px; height: 16px; }
    .strip-txt { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .strip-txt small { font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0; text-transform: none; }
    .strip-txt b { justify-content: flex-end; text-align: right; }
    .strip-ft { padding: 12px 16px 14px; }
    .strip-ft p { display: none; }
    .strip-ft .flex { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 374px) {
    .strip-ft .flex { grid-template-columns: minmax(0, 1fr); }
  }
}

/* pedido de nota (ultrapack-avaliacoes), acima da descricao */
.item-pede .up-aval-pede { width: 100%; margin: 0; padding: 12px 16px; border: var(--bd); border-radius: var(--r-card); background: var(--surface-2); font-family: var(--font-body); color: var(--text); }

/* -------------------------------------------- descricao (+ guia de instalacao) */
.item-desc { color: var(--text); }
.item-desc .post-content-divider { display: none; }
.item-desc p { max-width: 72ch; }
.item-desc p + p, .item-desc ul + p, .item-desc ol + p { margin-top: 12px; }
.item-desc h2, .item-desc h3 { margin: 32px 0 12px; font-family: var(--font-display); font-size: calc(var(--fs-h3) * 1.05); line-height: 1.3; color: var(--ink); letter-spacing: var(--h-ls); }
.item-desc h4 { margin: 22px 0 8px; font: 700 1rem/1.3 var(--font-display); color: var(--ink); }
.item-desc a { color: var(--accent); font-weight: 600; }
.item-desc strong, .item-desc b { color: var(--ink); font-weight: 600; }
.item-desc img { border-radius: var(--r-thumb); }
/* listas da descricao: o "Recursos principais" do mockup, em duas colunas */
.item-desc .post-content > ul, .item-desc .up-ig-painel > ul { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; margin: 4px 0 6px; padding: 0; list-style: none; }
.item-desc .post-content > ul > li, .item-desc .up-ig-painel > ul > li { position: relative; padding-left: 27px; font-size: var(--fs-sm); line-height: 1.55; }
.item-desc .post-content > ul > li::before, .item-desc .up-ig-painel > ul > li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 17px; height: 17px; background: var(--ico-check) no-repeat center / contain;
}
.item-desc ol { margin: 8px 0; padding-left: 22px; }
.item-desc .up-requisitos { margin-top: 18px; font-size: var(--fs-sm); }
/* abas Descricao / Como instalar (ultrapack-install-guide): a barra do plugin
   sai da tela e quem troca os paineis e a barra de abas da faixa (uma barra so,
   como no mockup; o d-item.js aciona os botoes do plugin, que seguem no DOM).
   O titulo "Como instalar" do painel, que o plugin deixa so para leitor de
   tela, aparece quando o guia esta aberto. */
.ui2-item .item-desc .up-ig .up-ig-abas { display: none !important; }
.ui2-item .item-desc .up-ig #up-ig-painel-inst > .up-ig-sr {
  position: static !important; width: auto; height: auto; margin: 0 0 14px; overflow: visible; clip: auto; clip-path: none; white-space: normal;
  font: var(--h-w) calc(var(--fs-h3) * 1.2)/1.12 var(--font-display); letter-spacing: var(--h-ls); color: var(--ink);
}
/* (pele da barra do plugin, se um dia ela voltar a aparecer) */
.ui2-item .item-desc .up-ig .up-ig-abas { display: inline-flex; flex-wrap: wrap; gap: 2px; margin: 0 0 22px; padding: 4px; border-radius: var(--r-pill); background: var(--surface-3); }
.ui2-item .item-desc .up-ig .up-ig-aba-h { font-size: inherit !important; line-height: 1 !important; letter-spacing: 0 !important; color: inherit !important; }
.ui2-item .item-desc .up-ig .up-ig-aba {
  padding: 9px 18px; border: 0 !important; border-radius: var(--r-pill) !important; font: 600 var(--fs-sm)/1.2 var(--font-body);
  color: var(--text); letter-spacing: 0; transition: background .2s ease, color .2s ease;
}
.ui2-item .item-desc .up-ig .up-ig-aba:hover { color: var(--ink); }
.ui2-item .item-desc .up-ig .up-ig-aba.is-on { background: var(--surface) !important; color: var(--ink); box-shadow: var(--sh-card) !important; }
.ui2-item .item-desc .up-ig .up-ig-aba:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ui2-item .item-desc .up-ig .up-ig-fato { padding: 16px 20px; border: var(--bd); border-radius: var(--r-card); background: var(--surface-2); font-size: var(--fs-sm); }
.ui2-item .item-desc .up-ig .up-ig-passos li::before { border: 0; background: var(--accent-soft); color: var(--accent-ink); }
.ui2-item .item-desc .up-ig .up-ig-nota { border-radius: var(--r-card); background: var(--surface-2); }
.ui2-item .item-desc .up-ig .up-ig-notas li, .ui2-item .item-desc .up-ig .up-ig-extras li { color: var(--text); }
.ui2-item .item-desc .up-ig .up-ig-guia code { background: var(--surface-3); color: var(--ink); font-weight: 600; }
/* perguntas frequentes (ultrapack-seo) */
/* sem a moldura cinza do faq.css do ultrapack-seo (pedido do Marcus, 12/10/2026): os cartoes
   ficam soltos e a sombra deles nao e mais cortada pelo overflow */
.item-desc .up-faq { display: grid; gap: 8px; margin-top: 6px; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.item-desc .up-faq__item { border: var(--bd); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--sh-card); overflow: hidden; }
.item-desc .up-faq__q { padding: 14px 18px; font: 600 var(--fs-sm)/1.4 var(--font-body); color: var(--ink); cursor: pointer; }
.item-desc .up-faq__a { padding: 0 18px 14px; font-size: var(--fs-sm); }

/* ----------------------------------------------------------- changelog */
.cl { overflow: hidden; }
.cl-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap;
  padding: 16px 22px; background: var(--surface-2); border-bottom: 1px solid var(--line-soft);
}
.cl-ttl { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.cl-ttl h3 { font-size: 1.12rem; }
.cl-count { display: flex; gap: 6px; flex-wrap: wrap; }
.cl-body { display: grid; gap: 18px; padding: 18px 22px 20px; }
.cl-tag { margin-bottom: 9px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.cl-list li { position: relative; padding-left: 18px; font-size: var(--fs-sm); color: var(--text); overflow-wrap: anywhere; }
.cl-list li + li { margin-top: 7px; }
.cl-list li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px;
  border-radius: var(--r-pill); background: var(--dot, var(--accent));
}
.cl-grp--novo { --dot: var(--green); }
.cl-grp--correcao { --dot: var(--amber); }
.cl-grp--seguranca { --dot: var(--danger); }
.cl-grp--removido, .cl-grp--outro { --dot: var(--muted); }
.cl-prev { padding: 14px 22px 4px; border-top: 1px solid var(--line-soft); }
.cl-prev-hd { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cl-det + .cl-det { border-top: 1px solid var(--line-soft); }
.cl-row {
  display: grid; grid-template-columns: 84px 112px minmax(0, 1fr) 16px; gap: 12px; align-items: center;
  padding: 12px 0; font-size: var(--fs-sm); cursor: pointer; list-style: none;
}
.cl-row::-webkit-details-marker { display: none; }
.cl-row b { font-family: var(--font-mono); font-weight: 700; color: var(--ink); transition: color .2s ease; }
.cl-row-d { color: var(--muted); }
.cl-row .flex { gap: 6px; }
.cl-row > .i { width: 16px; height: 16px; color: var(--muted); transition: transform .2s ease; }
.cl-row:hover b { color: var(--accent); }
.cl-det[open] > .cl-row > .i { transform: rotate(180deg); }
.cl-body--prev { padding: 4px 0 16px; }
.cl-ft { padding: 12px 22px 14px; background: var(--surface-2); border-top: 1px solid var(--line-soft); }
.cl-ft p { display: flex; align-items: center; gap: 6px; }
.cl-ft .i { width: 14px; height: 14px; }
.cl-mais { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--accent-ink); }
.cl-mais:hover { color: var(--accent); }
.cl-ft .cl-mais .i { width: 15px; height: 15px; }

/* ------------------------------------- versoes anteriores (ultrapack-legacy-versions) */
.vers { overflow: hidden; }
.vers .card-hd h3 { font-size: 1.08rem; }
.vers-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); }
.vers-ico .i { width: 17px; height: 17px; }
#versoes #up-version-box { display: block !important; border-radius: 0; overflow: visible; }
#versoes #up-version-box .up-version-table,
#versoes #up-version-box .up-version-table tbody { display: block !important; width: 100%; border: 0; }
#versoes #up-version-box .up-version-table tbody tr:not(.up-lv-hidden) {
  display: grid !important; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px 18px; align-items: center;
  padding: 12px 22px !important; border: 0 !important; border-bottom: 0 !important; background: none;
}
#versoes #up-version-box .up-version-table tbody tr + tr { border-top: 1px solid var(--line-soft) !important; }
#versoes #up-version-box .up-version-table tbody tr td {
  display: flex !important; align-items: center; gap: 6px; min-width: 0; width: auto !important; padding: 0 !important;
  border: 0 !important; background: none !important; color: var(--muted); font-size: var(--fs-xs); line-height: 1.4; text-align: left;
}
#versoes #up-version-box .up-version-table tbody tr td:nth-child(2)::before,
#versoes #up-version-box .up-version-table tbody tr td:nth-child(3)::before {
  content: ""; flex: none; width: 14px; height: 14px; opacity: 1;
  background: currentColor; -webkit-mask: var(--di-mask-cal) center / contain no-repeat; mask: var(--di-mask-cal) center / contain no-repeat;
}
#versoes #up-version-box .up-version-table tbody tr td:nth-child(3)::before { -webkit-mask-image: var(--di-mask-box); mask-image: var(--di-mask-box); }
#versoes #up-version-box .up-version-table tbody tr td:nth-child(3) { text-align: left !important; }
#versoes #up-version-box .up-version-table tbody tr td:first-child { grid-column: auto; color: var(--ink); font-size: var(--fs-sm); }
#versoes #up-version-box .up-version-table .up-lv-item-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
#versoes #up-version-box .up-version-table .version {
  display: inline-block; padding: 3px 10px; border-radius: var(--r-sm); background: var(--surface-3); color: var(--ink);
  font: 600 var(--fs-sm)/1.4 var(--font-mono);
}
#versoes #up-version-box .up-version-table tbody tr td:last-child { grid-column: auto; justify-content: flex-end; padding-top: 0 !important; }
#versoes .up-download-old {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: auto; min-height: 0; height: 36px; margin: 0; padding: 0 14px;
  border: var(--bd); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); box-shadow: none;
  font: 600 var(--fs-xs)/1 var(--font-body); transition: background .2s ease, color .2s ease, border-color .2s ease;
}
#versoes .up-download-old:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); box-shadow: none; }
#versoes .up-download-old:disabled { background: var(--surface-2); border-color: var(--line); color: var(--muted); box-shadow: none; }
#versoes .up-download-old .up-ico, #versoes .up-download-old .up-ico svg { flex: none; width: 15px; height: 15px; }
#versoes .up-download-old.is-loading .up-ico { border-color: var(--line); border-top-color: var(--accent); }
#versoes #up-version-box .up-version-table .up-lv-download-label { display: inline; }
#versoes .up-download-old.di-assine { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
#versoes .up-download-old.di-assine:hover { background: var(--accent); color: var(--on-dark); }
#versoes .up-download-old.di-assine .up-ico svg { display: none; }
#versoes .up-download-old.di-assine .up-ico { background: currentColor; -webkit-mask: var(--di-mask-lock) center / contain no-repeat; mask: var(--di-mask-lock) center / contain no-repeat; }
#versoes .up-load-more-versions {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 0; padding: 14px 22px;
  border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; background: var(--surface-2); color: var(--ink);
  font: 600 var(--fs-xs)/1 var(--font-body); box-shadow: none; cursor: pointer; transition: color .2s ease;
}
#versoes .up-load-more-versions:hover { background: var(--surface-2); color: var(--accent); }
#versoes .up-load-more-versions .up-lv-more-ico svg { fill: currentColor; }

/* --------------------------------------- verificacao (ultrapack-security-badge) */
.scan { padding: 20px 22px; }
.scan-hd { display: flex; align-items: center; gap: 14px; }
.scan-ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: var(--r-ctl); background: var(--green-soft); color: var(--green); }
.scan-ico .i { width: 22px; height: 22px; }
.scan-hd h3 { font-size: 1.08rem; }
.scan-hd p { margin-top: 2px; font-size: var(--fs-sm); color: var(--muted); }
.scan-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line-soft); }
.scan-facts div { min-width: 0; }
.scan-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.scan-facts dd { margin: 3px 0 0; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.scan-facts code { font-size: var(--fs-xs); color: var(--green); }
.scan-mix { margin-top: 18px; }
.scan-mix-hd { margin-bottom: 9px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.scan-bar { display: flex; height: 10px; border-radius: var(--r-pill); overflow: hidden; background: var(--surface-3); }
.scan-bar i { display: block; height: 100%; width: var(--v); background: var(--k); }
.scan-bar i + i { box-shadow: -2px 0 0 var(--surface); }
.scan-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: var(--fs-xs); color: var(--text); }
.scan-leg li { display: inline-flex; align-items: center; gap: 6px; }
.scan-leg li i { width: 9px; height: 9px; border-radius: 3px; background: var(--k); }
.scan-leg b { color: var(--ink); font-weight: 600; }
/* a caixa do ClamAV em AZUL (pedido do Marcus, 12/10/2026; era verde desde 11/10).
   So existe a variante "limpo" (up_ui2_d_item_scan devolve so status clean). A barra
   "O que tem no arquivo" mantem as cores dela. */
.card.scan { background: #edf5ff; border-color: #c4dcf7; }
.scan-ico { background: #2f74c0; color: #fff; box-shadow: 0 6px 14px -8px rgba(47, 116, 192, .75); }
.scan-hd h3 { color: #174a7c; }
.scan-hd p { color: #3f5f80; }
.scan-facts { border-top-color: #cfe1f6; }
.scan-facts dt, .scan-mix-hd { color: #4d6d8f; }
.scan-facts dd { color: #142e4a; }
.scan-facts code { color: #1f5c99; }
.scan-bar { background: #d9e8f8; }
.scan-bar i + i { box-shadow: -2px 0 0 #edf5ff; }
.scan [data-k="0"] { --k: var(--brand-wine); }
.scan [data-k="1"] { --k: var(--coral); }
.scan [data-k="2"] { --k: var(--brand-slate); }
.scan [data-k="3"] { --k: var(--amber); }
.scan [data-k="4"] { --k: var(--green); }
.scan [data-k="5"] { --k: var(--accent-ink); }
.scan [data-k="6"] { --k: var(--muted); }

/* idiomas do item (faixa de bandeiras do tema) */
.item-idiomas .up-idiomas-bloco { margin: 0 !important; border-radius: var(--r-card); background: var(--surface-2) !important; border: var(--bd); }

/* tags */
.item-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.item-tag-list .chip { padding: 6px 12px; font-size: var(--fs-xs); transition: border-color .2s ease; }
.item-tag-list .chip:hover { border-color: var(--accent); }
.item-tag-list .chip .i { width: 13px; height: 13px; }
.item-tag-list small { color: var(--muted); font-size: 11px; }

/* relacionados */
.item-rel-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.item-rel-hd .item-h2 { margin-bottom: 0; }
.item-more { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--accent); }
.item-more .i { width: 16px; height: 16px; }

/* ------------------------------------------------- cartao "Como baixar" */
.buy { padding: 18px 22px; }
.buy-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.buy-lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.buy-msg { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 14px; padding: 11px 14px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-ink); font-size: var(--fs-xs); font-weight: 600; line-height: 1.45; }
.buy-msg .i { width: 16px; height: 16px; margin-top: 1px; }
/* avisos de plano que nao cobre o item (Extras no VIP, sem plano): laranja de ALERTA,
   nao de erro (pedido do Marcus, 12/10/2026); textos e logica iguais */
.buy-msg { align-items: center; gap: 11px; padding: 10px 12px; background: #fff3e3; border: 1px solid #f6cf9f; color: #8a4508; }
.buy-msg .i { flex: none; box-sizing: content-box; width: 15px; height: 15px; margin: 0; padding: 5px; border-radius: 7px; background: #e07b16; color: #fff; }
.buy-msg a { color: #8a4508; text-decoration: underline; text-underline-offset: 3px; }

.opt {
  position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 2px 12px;
  padding: 16px; border: var(--bd); border-radius: var(--r-card); background: var(--surface); cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.opt + .opt { margin-top: 12px; }
.opt:hover { border-color: var(--accent); }
.opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.opt:has(input:checked), .opt.is-on { border-color: var(--accent); background: var(--accent-soft); outline: 1px solid var(--accent); } /* .is-on: o d-item.js marca (Safari < 15.4 nao tem :has) */
.opt-main { min-width: 0; }
.opt-name { display: block; font-weight: 700; font-size: var(--fs-sm); color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }
.opt-sub { display: block; margin-top: 3px; font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }
.opt-price { text-align: right; white-space: nowrap; }
.opt-price b { display: block; font: var(--h-w) 1.35rem/1.1 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.opt-price small { font-size: 11.5px; color: var(--muted); }
.opt-checks { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: var(--fs-xs); color: var(--text); }
.opt-checks li { display: inline-flex; align-items: center; gap: 5px; }
.opt-checks .i { width: 13px; height: 13px; color: var(--green); }
.opt-anual { grid-column: 2 / -1; display: inline-flex; align-items: center; gap: 5px; justify-self: start; margin-top: 8px; font-size: var(--fs-xs); font-weight: 600; color: var(--accent); }
.opt-anual .i { width: 13px; height: 13px; transition: transform .2s ease; }
.opt-anual:hover .i { transform: translateX(3px); }
.opt-flag {
  position: absolute; top: -10px; right: 14px; background: var(--btn-bg); color: var(--btn-fg);
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
}
.buy-cta { display: grid; gap: 10px; margin-top: 16px; }
.buy-cta .btn span { overflow: hidden; text-overflow: ellipsis; }

/* o botao Download de hoje: .single-bt-download e o corpo do botao (o
   ultrapack-single.js pinta o fundo dele enquanto espera); o <a> preenche */
.buy .single-bt-download {
  position: relative; display: block; width: 100%; margin: 0; border-radius: var(--r-ctl);
  background: var(--btn-bg); box-shadow: var(--btn-sh); transition: background .2s ease, box-shadow .2s ease;
}
.buy .single-bt-download:hover { background: var(--btn-bg-h); }
.buy .single-bt-download .lds-ring { position: relative; display: block; }
.buy .single-bt-download-a {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px;
  color: var(--btn-fg); font: 600 var(--fs-body)/1 var(--font-body); cursor: pointer; user-select: none;
}
.buy .single-bt-download-a::before {
  content: ""; width: 19px; height: 19px; flex: none; background: currentColor;
  -webkit-mask: var(--di-mask-dl) center / contain no-repeat; mask: var(--di-mask-dl) center / contain no-repeat;
}
.buy .single-bt-download-a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-ctl); }
.buy .btn-download-loader {
  display: none; position: absolute; right: 20px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border: 2px solid var(--on-dark-mut); border-top-color: var(--on-dark); border-radius: 50%; animation: di-gira .8s linear infinite;
}
@keyframes di-gira { to { transform: rotate(360deg); } }
/* ja baixado: o mesmo estado do /changelog/, em tom de "voce ja tem" */
.buy .single-bt-download.is-downloaded { background: var(--brand-slate); box-shadow: none; }
.buy .single-bt-download.is-downloaded:hover { background: var(--plum-2); }
.buy-ja .pill { font-size: 11px; }

.quota-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quota-row p { font-size: var(--fs-sm); color: var(--text); line-height: 1.3; }
.quota-row p b { font: var(--h-w) 1.7rem/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); margin-right: 4px; }
.buy .meter { margin-top: 12px; }
.buy .meter--fim > i { background: var(--danger); }
.buy-fim { display: flex; align-items: center; gap: 6px; color: var(--danger); font-weight: 600; }
.buy-fim .i { width: 14px; height: 14px; }
.buy-dono { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--green-soft); color: var(--green); font-size: var(--fs-xs); font-weight: 600; }
.buy-dono .i { width: 15px; height: 15px; }

/* downloads alternativos, nota de compra avulsa e afins, abaixo do botao */
.buy-extra { margin-top: 12px; }
.buy-extra:empty { display: none; }
.buy .up-alt-downloads.up-alt-downloads--abaixo, .buy .up-alt-downloads {
  display: grid; gap: 8px; margin: 0; padding: 12px 14px; border: var(--bd); border-radius: var(--r-card); background: var(--surface-2);
  font-family: var(--font-body); font-size: var(--fs-xs);
}
.buy .up-alt-downloads .up-alt-opt { display: flex; align-items: center; gap: 9px; color: var(--text); }
.buy .up-alt-downloads .up-alt-opt input[type="radio"] { width: 16px; height: 16px; accent-color: var(--accent); }
.buy .up-alt-downloads .up-alt-opt input[type="radio"]:checked + span { color: var(--ink); font-weight: 600; }
.buy .up-alt-version { font-family: var(--font-mono); color: var(--green); }
.buy .up-ss-single-block { margin: 0; border-radius: var(--r-card); font-family: var(--font-body); }
.buy .up-aval-pede { width: 100%; margin: 0; border-radius: var(--r-card); background: var(--surface-2); }

/* notificacao (input.alarm) e favoritos (wp-favorite-posts) */
.buy-conta { display: grid; gap: 8px; margin-top: 14px; }
.buy-watch { padding: 11px 14px; border: var(--bd); border-radius: var(--r-ctl); transition: border-color .2s ease; }
.buy-watch:hover { border-color: var(--accent); }
/* chave (switch) do aviso de atualizacao (12/10/2026): o checkbox do plugin desenhado como trilho + bolinha */
.buy-watch { justify-content: space-between; }
.buy-watch span { order: -1; }
.buy-watch input.alarm { -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 40px; height: 22px; margin: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: background-color .2s ease; }
.buy-watch input.alarm::before { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(28, 32, 48, .3); transition: transform .2s ease; }
.buy-watch input.alarm:checked { background: var(--green); }
.buy-watch input.alarm:checked::before { transform: translateX(18px); }
.buy-watch input.alarm:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .buy-watch input.alarm, .buy-watch input.alarm::before { transition: none; } }
/* favoritos no topo do cartao Como baixar (11/10/2026): ladrilho como o do Auto Updater */
.buy-fav-top { display: flex; align-items: center; gap: 10px; margin: -4px 0 16px; padding: 8px 10px; border-radius: var(--r-thumb); background: var(--accent-soft); }
.buy-fav-ico { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--surface); color: var(--coral); box-shadow: var(--sh-card); }
.buy-fav-ico .i { width: 16px; height: 16px; }
.buy-fav-top .wpfp-span { display: inline-flex; align-items: center; gap: 6px; }
.buy-fav-top .wpfp-link { font-size: var(--fs-sm); font-weight: 700; color: var(--accent-ink); }
.buy-fav-top .wpfp-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.buy-fav-top .wpfp-hide { display: none; }
.buy-fav-top .wpfp-img { width: 14px; height: 14px; }
/* hover/foco: o ladrilho esquenta e o coracao cresce um pouco; ligado (o link do
   plugin passa a ser o de remover): ladrilho coral solido, coracao cheio, "Nos
   favoritos" com check e, no hover, "Remover dos favoritos" (pedido do Marcus, 11/10/2026) */
.buy-fav-top { position: relative; transition: background .2s ease; }
.buy-fav-ico { transition: background .2s ease, color .2s ease; }
.buy-fav-top:is(:hover, :focus-within) .buy-fav-ico { background: #ffd9d4; }
/* animacao basica (pedido do Marcus, 11/10/2026): so cor e o coracao crescendo ate 1.08 */
.buy-fav-ico .i { transition: transform .2s ease, color .2s ease; }
@media (prefers-reduced-motion: no-preference) {
  .buy-fav-top:is(:hover, :focus-within) .buy-fav-ico .i { transform: scale(1.08); }
}
.buy-fav-top .wpfp-link::after { content: ""; position: absolute; inset: 0; } /* a linha toda clica */
.buy-fav-ico { position: relative; }
.buy-fav-top:has(a[href*="wpfpaction=remove"]) { background: #fde7e4; }
.buy-fav-top:has(a[href*="wpfpaction=remove"]) .buy-fav-ico { background: var(--coral); color: #fff; }
.buy-fav-top:has(a[href*="wpfpaction=remove"]) .buy-fav-ico .i { fill: currentColor; }
.buy-fav-top:has(a[href*="wpfpaction=remove"]) .wpfp-link { font-size: 0; }
.buy-fav-top:has(a[href*="wpfpaction=remove"]) .wpfp-link::before { content: "\2713\00a0" var(--fav-on); font-size: var(--fs-sm); color: #b4473f; }
.buy-fav-top:has(a[href*="wpfpaction=remove"]):is(:hover, :focus-within) .wpfp-link::before { content: var(--fav-rm); }
.buy-fav { display: flex; align-items: center; gap: 9px; padding: 0 14px; font-size: var(--fs-sm); color: var(--muted); }
.buy-fav > .i { width: 16px; height: 16px; color: var(--coral); }
.buy-fav .wpfp-span { display: inline-flex; align-items: center; gap: 6px; }
.buy-fav .wpfp-link { color: var(--accent); font-weight: 600; }
.buy-fav .wpfp-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.buy-fav .wpfp-hide { display: none; }
.buy-fav .wpfp-img { width: 14px; height: 14px; }

.buy-uau {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 14px;
  border-radius: var(--r-sm); background: var(--green-soft); color: var(--green); font-size: var(--fs-xs); font-weight: 600;
}
.buy-uau .i { width: 16px; height: 16px; }
.buy .btn--ok { border-color: var(--green-soft); }
.buy-link { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: var(--fs-xs); font-weight: 600; color: var(--accent); }
.buy-link .i { width: 13px; height: 13px; }
.buy-login { margin-top: 14px; text-align: center; font-size: var(--fs-sm); color: var(--text); }
.buy-login a { color: var(--accent); font-weight: 600; }
.buy-trust {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--muted);
}
.buy-trust span { display: inline-flex; align-items: center; gap: 5px; }
.buy-trust .i { width: 13px; height: 13px; }

/* notas do item (item_info, licenca, Envato, aviso de categoria, descontinuado) */
.item-note { margin-top: 16px; }
.item-note a { color: var(--accent); font-weight: 600; }
.item-note .item-desbloqueado { margin: 0; padding: 0; border: 0; background: none; color: inherit; font-size: inherit; text-align: left; }
.item-note p + p { margin-top: 8px; }
.item-note--ok { border-color: var(--green-soft); background: var(--green-soft); }
.item-note--ok .note-hd { color: var(--green); }
.item-note--info { border-color: var(--line); background: var(--surface-2); }
/* licenca original em AZUL, nos tons da caixa de hoje (#eaf8ff / #b6e1ea; pedido do Marcus, 11/10/2026) */
/* add-on: "Instale primeiro" o item principal (12/10/2026), ambar de aviso */
.item-req { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 16px; padding: 14px 16px; border: 1px solid #f6cf9f; border-radius: var(--r-card); background: #fff8ee; }
.item-req-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #ffe7c7; color: #c46a0a; }
.item-req-ico .i { width: 20px; height: 20px; }
.item-req-tx b { display: block; font: 700 .98rem/1.3 var(--font-display); color: var(--ink); }
.item-req-tx small { display: block; margin-top: 2px; font-size: var(--fs-sm); color: #5b5047; }
.item-req-go { white-space: nowrap; }
@media (max-width: 600px) {
  .item-req { grid-template-columns: 40px minmax(0, 1fr); }
  .item-req-go { grid-column: 1 / -1; justify-content: center; }
}
.item-note--lic { border-color: #b6e1ea; background: #eaf8ff; box-shadow: 0 7px 12px -12px rgba(90, 174, 185, .9); }
.item-note--lic .note-hd { color: #1d6f8a; }
.item-note--lic, .item-note--lic p { color: #24536a; }
.item-note--lic a { color: #0f6fa3; }
.item-note--lic a:hover { color: #0a4f76; }
/* a coluna fixa nunca encosta no pe da janela: no maximo a altura da janela menos os
   dois respiros; se passar disso, rola por dentro (pedido do Marcus, 11/10/2026), sem a
   barra de rolagem aparente (pedido do Marcus, 12/10/2026): a roda do mouse e o toque
   continuam rolando a coluna */
@media (min-width: 981px) {
  .item-aside.sticky { max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; margin-inline: -8px; padding: 0 8px 12px; }
  .item-aside.sticky::-webkit-scrollbar { display: none; }
}
.item-note--info .note-hd { color: var(--brand-slate); }

/* CTA de planos que o tema poe para quem nao assina: o cartao ja e ele */
.ui2-item .up-cta-card { display: none !important; }

/* ------------------------------------------------ modal "Reportar item" */
/* Pedido do Marcus (11/10/2026). Markup: blocos.php, up_ui2_d_item_modal_reporte;
   comportamento: d-item.js. Caixa em coluna: topo e rodape fixos, so o corpo
   rola (e so quando falta altura: em 1440x900 cabe inteiro). No celular vira
   folha de baixo, com Cancelar e Enviar sempre visiveis.
   Cada motivo tem a sua cor em duotom, como os icones do menu: atualizacao
   verde, desbloqueio ambar, erro coral, link ardosia, versao roxo. O roxo nao
   existe no tokens.css: fica aqui, local, ate entrar la (drift registrado).
   O ultrapack-single.js poe display:block inline no #myModal; quem decide e a
   classe is-open, com !important. */
#myModal { display: none; }
#myModal.rpt { --rpt-roxo: #6a4c9c; --rpt-roxo-soft: #f1ecf8; display: none !important; }
#myModal.rpt.is-open {
  display: flex !important; align-items: center; justify-content: center;
  position: fixed; inset: 0; z-index: 400; padding: 24px;
  background: color-mix(in srgb, var(--plum) 55%, transparent);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
html.rpt-aberto, html.rpt-aberto body { overflow: hidden; }
.rpt [hidden], .rpt .rpt-oculto { display: none !important; }
.rpt-box {
  position: relative; display: flex; flex-direction: column; width: 640px; max-width: 100%;
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: hidden;
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--sh-pop);
  color: var(--text); font-family: var(--font-body); font-size: var(--fs-sm); text-align: left; outline: none;
}
.rpt p { margin: 0; }

/* topo */
.rpt-hd { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 0; }
.rpt-titulo { position: relative; padding-left: 14px; font: var(--h-w) 1.35rem/1.25 var(--font-display); letter-spacing: var(--h-ls); color: var(--ink); }
.rpt-titulo::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: var(--grad-warm); }
.rpt-sub { margin-top: 4px !important; padding-left: 14px; font-size: var(--fs-xs); color: var(--muted); }
.rpt-x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; margin: -4px -6px 0 0; padding: 0; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--muted); cursor: pointer; transition: background .2s ease, color .2s ease; }
.rpt-x:hover { background: var(--surface-3); color: var(--ink); }
.rpt-x .i { width: 18px; height: 18px; }

/* corpo (rola se faltar altura) */
.rpt-corpo { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 24px 6px; }

/* o item numa linha */
.rpt-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 12px 7px 7px; border: var(--bd); border-radius: 14px; background: var(--surface-2); }
.rpt-capa { flex: none; width: 44px; height: 32px; border-radius: 8px; object-fit: cover; }
.rpt-capa--sigla { display: grid; place-items: center; background: var(--th1); color: var(--th-fg); font: 700 11px/1 var(--font-display); }
.rpt-item-nome { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ink); }
.rpt-item-tipo { flex: none; white-space: nowrap; font-size: var(--fs-xs); color: var(--muted); }
.rpt-item-tipo::before { content: "\00b7"; margin-right: 10px; }
.rpt-item-ver { flex: none; margin-left: auto; }

/* motivos */
.rpt-q { margin: 16px 0 8px !important; font-weight: 600; color: var(--ink); }
.rpt-ops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rpt-op {
  --op-fg: var(--green); --op-bg: var(--green-soft);
  display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; padding: 8px 12px 8px 8px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink);
  font: inherit; text-align: left; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.rpt-op:last-child:nth-child(odd) { grid-column: 1 / -1; }
.rpt-op--desbl { --op-fg: var(--amber); --op-bg: var(--amber-soft); }
.rpt-op--erro { --op-fg: color-mix(in srgb, var(--coral) 55%, var(--danger)); --op-bg: var(--danger-soft); }
.rpt-op--link { --op-fg: var(--brand-slate); --op-bg: var(--surface-3); }
.rpt-op--versao { --op-fg: var(--rpt-roxo); --op-bg: var(--rpt-roxo-soft); }
.rpt-op:hover { border-color: color-mix(in srgb, var(--op-fg) 45%, var(--line)); }
.rpt-op[aria-checked="true"] { border-color: var(--op-fg); background: color-mix(in srgb, var(--op-bg) 70%, var(--surface)); box-shadow: inset 0 0 0 1px var(--op-fg), 0 6px 16px -12px var(--op-fg); }
.rpt-op:focus-visible { outline: 2px solid var(--op-fg); outline-offset: 2px; }
.rpt-op-ico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--op-bg); color: var(--op-fg); transition: background .2s ease; }
.rpt-op[aria-checked="true"] .rpt-op-ico { background: var(--surface); }
.rpt-op-ico .i { width: 18px; height: 18px; }
.rpt-op-txt { flex: 1; min-width: 0; }
.rpt-op-txt b { display: block; font-weight: 600; line-height: 1.3; }
.rpt-op-txt small { display: block; margin-top: 1px; font-size: var(--fs-xs); line-height: 1.35; color: var(--muted); }
/* o marcador redondo: a escolha nao depende so da cor */
.rpt-op::after { content: ""; flex: none; width: 16px; height: 16px; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 50%; background: var(--surface); transition: border .2s ease; }
.rpt-op[aria-checked="true"]::after { border: 5px solid var(--op-fg); }

/* campos de cada motivo */
.rpt-campos { margin-top: 14px; }
.rpt-grupo--2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; }
.rpt-campo label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 6px; font-weight: 600; color: var(--ink); }
.rpt-opc { font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }
.rpt-in {
  display: block; width: 100%; height: 44px; margin: 0; padding: 0 14px; box-sizing: border-box;
  font: inherit; color: var(--ink); background: var(--surface); border: var(--bd); border-radius: 12px; box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.rpt-ta { height: auto; min-height: 84px; padding: 10px 14px; line-height: 1.5; resize: vertical; }
.rpt-in::placeholder { color: var(--muted); opacity: 1; }
.rpt-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rpt-nada { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.rpt-nada .i { width: 18px; height: 18px; color: var(--green); }

/* o formulario do CF7: so o captcha e a resposta do servidor aparecem */
.rpt-cf7 .wpcf7-form { margin: 0; }
.rpt-cf7 .wpcf7-form > p { margin: 0; }
.rpt-cf7 .up-ts-report { display: block; }
.rpt-cf7 .up-ts-report iframe { display: block; max-width: 100%; margin: 12px 0 0; }
.rpt-cf7 .g-recaptcha { margin-top: 12px; transform-origin: 0 0; }
.rpt-cf7 .ajax-loader, .rpt .ajax-error { display: none !important; }
.rpt-cf7 .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: var(--fs-xs); color: var(--danger); }
.rpt-cf7 .wpcf7-response-output { margin: 12px 0 0; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: var(--fs-xs); font-weight: 500; line-height: 1.5; }
.rpt-cf7 .wpcf7-response-output.wpcf7-display-none { display: none; }
.rpt-cf7 .wpcf7-response-output.wpcf7-mail-sent-ok { background: var(--green-soft); color: var(--green); }

/* confirmacao (so com o mailSent do servidor) */
.rpt-ok { padding: 22px 8px 14px; text-align: center; }
.rpt-ok-ico { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.rpt-ok-ico .i { width: 26px; height: 26px; stroke-width: 2.2; }
.rpt-ok-t { font: var(--h-w) 1.2rem/1.3 var(--font-display); letter-spacing: var(--h-ls); color: var(--ink); outline: none; }
.rpt-ok-d { max-width: 42ch; margin: 6px auto 0 !important; }

/* deslogado */
.rpt-login { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--surface-2); color: var(--ink); }
.rpt-login > .i { width: 20px; height: 20px; color: var(--brand-slate); }

/* rodape: as acoes ficam sempre a vista */
.rpt-ft { flex: none; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 18px; border-top: 1px solid var(--line-soft); background: var(--surface); }
.rpt-ft .btn { height: 44px; }
.rpt-ft .btn[disabled] { cursor: progress; opacity: .75; transform: none; }

@media (max-width: 640px) {
  #myModal.rpt.is-open { align-items: flex-end; padding: 0; }
  .rpt-box { width: 100%; max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px); border-radius: var(--r-card) var(--r-card) 0 0; }
  .rpt-hd { padding: 18px 16px 0; }
  .rpt-corpo { padding: 12px 16px 6px; }
  .rpt-ft { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .rpt-ft .btn { flex: 1 1 0; padding: 0 12px; }
  .rpt-ft [data-rpt-envia] { flex-grow: 2; }
  .rpt-grupo--2 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rpt-op { gap: 8px; padding: 7px 8px 7px 7px; }
  .rpt-op-ico { width: 32px; height: 32px; }
  .rpt-op::after { display: none; }
}
@media (max-width: 400px) {
  .rpt-op-txt small { display: none; }
}
/* 320: "Precisa desbloquear" nao cabe em meia largura; as opcoes viram uma lista */
@media (max-width: 360px) {
  .rpt-item-tipo { display: none; }
  .rpt-ops { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .rpt-op { padding: 5px 8px 5px 5px; }
  .rpt-op-ico { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .rpt *, .rpt *::after { transition: none !important; }
}

/* ---------------------------- variante "lateral no topo" (?ui2_lado=topo) */
/* Pedido do Marcus (11/10/2026). Uma grade so para faixa e corpo, com as
   medidas do .wrap.with-aside (var(--wrap) menos as margens; lateral de 380 e
   vao de 32): o cartao ocupa as duas linhas, comeca na altura da migalha e
   continua fixo na rolagem. O fundo da faixa e a celula .item-topo-bg, que
   atravessa a tela na primeira linha, atras da capa e do titulo. */
.item-topo {
  --di-lado: 350px; --di-vao: 32px; /* lateral era 380 (pedido do Marcus, 12/10/2026) */
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [main-start] minmax(0, calc(var(--wrap) - 2 * var(--gutter) - var(--di-lado) - var(--di-vao)))
    [main-end] var(--di-vao)
    [lado-start] var(--di-lado)
    [lado-end] minmax(var(--gutter), 1fr) [full-end];
  grid-template-rows: auto 1fr;
}
.item-topo-bg { grid-column: full; grid-row: 1; padding: 0; }
.item-topo-hd { grid-column: main; grid-row: 1; position: relative; z-index: 1; min-width: 0; padding-top: 30px; container-type: inline-size; }
.item-topo-corpo { grid-column: main; grid-row: 2; min-width: 0; padding: 28px 0 var(--sec-y); }
.item-topo-corpo > .item-alerta { margin-bottom: 26px; }
/* align-self: start, como o align-items do .with-aside: sem isso o cartao estica ate a
   altura da grade inteira e o sticky nao tem por onde andar (sobe junto com a pagina) */
.item-topo > .item-aside { grid-column: lado; grid-row: 1 / -1; align-self: start; margin-top: 30px; }
/* a faixa agora divide a largura com o cartao: capa menor quando a coluna aperta */
@container (max-width: 640px) {
  .item-topo-hd .item-hd { gap: 22px; }
  .item-topo-hd .item-capa { width: 180px; }
  .item-topo-hd .item-nav a { padding-left: 10px; padding-right: 10px; gap: 6px; }
}
@supports not (container-type: inline-size) {
  @media (min-width: 981px) and (max-width: 1100px) {
    .item-topo-hd .item-hd { gap: 22px; }
    .item-topo-hd .item-capa { width: 180px; }
    .item-topo-hd .item-nav a { padding-left: 10px; padding-right: 10px; gap: 6px; }
  }
}

/* ------------------------------------------------------- responsivo */
@media (max-width: 980px) {
  /* a coluna principal se desfaz na grade: o cartao de compra entra logo
     depois da faixa de dados e antes da descricao */
  .item-main { display: contents; }
  .item-alerta { order: 0; }
  .item-strip { order: 1; }
  .item-aside { order: 2; margin-top: 0; position: static; }
  .item-main > :not(.item-strip) { order: 3; }
  .item-main > .item-req { order: 0; } /* "Instale primeiro" antes da faixa de dados */
  .item-body { row-gap: 36px; }
  /* variante no topo: o cartao entra logo depois da faixa, antes da faixa de dados */
  .item-topo {
    grid-template-columns: [full-start] var(--gutter) [main-start lado-start] minmax(0, 1fr) [main-end lado-end] var(--gutter) [full-end];
    grid-template-rows: auto auto 1fr;
  }
  .item-topo > .item-aside { grid-row: 2; margin-top: 24px; }
  .item-topo-corpo { grid-row: 3; padding-top: 36px; }
  .item-topo .item-main { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
}
@media (max-width: 640px) {
  .item-band { padding-top: 16px; }
  .item-hd { flex-direction: column; align-items: stretch; gap: 16px; }
  .item-capa { width: 100%; }
  .item-cover b { font-size: 3.6rem; }
  .item-meta { gap: 6px 16px; }
  /* no celular as abas viram pilulas que quebram linha (sem rolagem lateral) */
  .item-nav { margin: 16px 0 18px; flex-wrap: wrap; gap: 6px; overflow: visible; }
  .item-nav a { padding: 7px 12px; gap: 6px; border: var(--bd); border-radius: var(--r-pill); background: var(--surface); font-size: var(--fs-xs); }
  .item-nav a.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
  .item-nav a .i { width: 14px; height: 14px; }
  .item-body { padding-top: 20px; row-gap: 32px; }
  .item-topo-hd { padding-top: 16px; }
  .item-topo-hd .item-hd { gap: 16px; }
  .item-topo-hd .item-capa { width: 100%; }
  .item-topo-corpo { padding-top: 32px; }
  .item-topo .item-main { row-gap: 32px; }
  .buy { padding: 16px; }
  .opt { padding: 14px; gap: 2px 10px; }
  .opt-price b { font-size: 1.2rem; }
  .cl-hd, .cl-body, .cl-prev, .cl-ft { padding-left: 16px; padding-right: 16px; }
  .cl-body--prev { padding-left: 0; padding-right: 0; }
  .cl-row { grid-template-columns: auto minmax(0, 1fr) 16px; grid-template-areas: "v d a" "p p a"; gap: 6px 12px; }
  .cl-row b { grid-area: v; }
  .cl-row-d { grid-area: d; }
  .cl-row .flex { grid-area: p; }
  .cl-row > .i { grid-area: a; }
  #versoes #up-version-box .up-version-table tbody tr:not(.up-lv-hidden) {
    grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "v v b" "d s b"; gap: 6px 12px; padding: 12px 16px !important;
  }
  #versoes .up-download-old .di-ll { display: none; }
  #versoes #up-version-box .up-version-table tbody tr td:first-child { grid-area: v; }
  #versoes #up-version-box .up-version-table tbody tr td:nth-child(2) { grid-area: d; }
  #versoes #up-version-box .up-version-table tbody tr td:nth-child(3) { grid-area: s; }
  #versoes #up-version-box .up-version-table tbody tr td:last-child { grid-area: b; }
  #versoes .up-download-old { padding: 0 12px; }
  .vers .card-hd { padding: 14px 16px; }
  .vers .card-hd h3 { font-size: 1rem; gap: 8px; }
  .vers-ico { width: 30px; height: 30px; }
  .scan { padding: 16px; }
  .scan-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .item-desc .post-content > ul, .item-desc .up-ig-painel > ul { grid-template-columns: minmax(0, 1fr); }
  /* a grade do catalogo vira 2 colunas no celular: o terceiro ficaria orfao */
  .item-rel > :nth-child(n+3) { display: none; }
}
@media (max-width: 420px) {
  #versoes #up-version-box .up-version-table tbody tr:not(.up-lv-hidden) { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "v b" "d b" "s b"; gap: 4px 12px; }
}
@media (max-width: 380px) {
  .item-title h1 { font-size: 1.7rem; }
  .item-title--longo h1 { font-size: 1.4rem; }
  .opt { grid-template-columns: 18px minmax(0, 1fr); }
  .opt-price { grid-column: 2; text-align: left; }
  .opt-price b { display: inline; margin-right: 4px; }
  #versoes .up-download-old .up-lv-download-label { display: none !important; }
  #versoes .up-download-old { width: 36px; padding: 0; }
}
