/* COMMIT Lab — folha de estilo do aplicativo.
   Fontes servidas localmente (OFL-1.1, ver public/fonts/); nenhuma requisição a terceiros.
   DM Sans no texto; IBM Plex Sans Condensed (a fonte da marca COMMIT) nos títulos. */
@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-condensed-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-condensed-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-condensed-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2");
}
/* ---------------------------------------------------------------------------
   Tokens: identidade do COMMIT (arquivos SVG da marca, ago/2025), claro ou escuro conforme
   o sistema. Navy na lateral e nos títulos; magenta nas ações (botão principal, item ativo,
   destaques). Contraste do texto branco sobre as duas: 6,6 (magenta) e 11,9 (navy).
   --------------------------------------------------------------------------- */
:root {
  color-scheme: light dark;
  --brand-navy: #323742;
  --brand-magenta: #b02253;
  --a-bg: #f5f6f8;
  --a-ink: #232733;
  --a-muted: #5f6573;
  --a-line: #e0e3e9;
  --a-surface: #ffffff;
  --a-surface-hover: #f0f2f5;
  --a-surface-2: #eef0f4;
  --a-focus: #b02253;
  /* Ação: fundo de botão (com texto branco) e texto/ícone em destaque. */
  --a-accent: #b02253;
  --a-accent-hover: #951c46;
  --a-accent-ink: #ffffff;
  --a-accent-text: #b02253;
  /* Lateral (menu) */
  --a-side: #323742;
  --a-side-ink: #ffffff;
  --a-side-muted: rgb(255 255 255 / 0.72);
  --a-side-hover: rgb(255 255 255 / 0.08);
  --a-side-line: rgb(255 255 255 / 0.12);
  --font-display: "IBM Plex Sans Condensed", "DM Sans", system-ui, sans-serif;
  --a-error: #a8321f;
  --a-ok: #2c6a3f;
  --a-warn: #7a5510;
  --a-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.05);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Escala da interface em monitores grandes sem escala do sistema (ver "Telas grandes", no fim). */
  --zoom: 1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --a-bg: #16181e;
    --a-ink: #eceef3;
    --a-muted: #a4a9b5;
    --a-line: #2f3440;
    --a-surface: #1f222a;
    --a-surface-hover: #272b35;
    --a-surface-2: #22262f;
    --a-focus: #f07aa0;
    --a-accent-hover: #c42a60;
    --a-accent-text: #f07aa0;
    --a-side: #111318;
    --a-error: #f0a08f;
    --a-ok: #8fd3a2;
    --a-warn: #e3c07c;
    --a-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  }
}

/* Base */
* {
  box-sizing: border-box;
}
html {
  background: var(--a-bg);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  background: var(--a-bg);
  color: var(--a-ink);
  -webkit-font-smoothing: antialiased;
  zoom: var(--zoom);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
.hidden {
  display: none !important;
}
.is-loading .shell {
  visibility: hidden;
}
/* Quem já tem sessão guardada vê a casca com os esqueletos enquanto o login é conferido. */
.is-loading.is-booting .shell {
  visibility: visible;
  pointer-events: none;
}

/* ---------------------------------------------------------------------------
   Esqueletos de carregamento (public/js/esqueleto.js)
   --------------------------------------------------------------------------- */
.sk {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: var(--a-line);
  animation: sk-pulse 1.4s ease-in-out infinite;
}
.sk--title {
  height: 16px;
}
.sk--num {
  width: 64px;
  height: 30px;
  border-radius: 8px;
}
.sk--box {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 9px;
}
.sk--rank {
  flex: none;
  width: 18px;
  height: 18px;
}
.sk--tick {
  flex: none;
  width: 260px;
}
.sk--w90 {
  width: 90%;
}
.sk--w75 {
  width: 75%;
}
.sk--w60 {
  width: 60%;
}
.sk--w40 {
  width: 40%;
}
.sk--w25 {
  width: 25%;
}
.sk-stack {
  display: grid;
  gap: 8px;
  align-content: start;
}
.sk-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}
.sk-row__text {
  flex: 1;
  display: grid;
  gap: 8px;
}
.sk-news {
  gap: 8px;
  padding: 14px 0;
}
.ticker__track.is-loading {
  width: 100%;
  animation: none;
}
.ticker__sk {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 44px;
}
.ticker__track .ticker__sk::after {
  content: none;
}
.account__who .sk {
  height: 10px;
  margin: 3px 0;
}
.result--loading {
  min-height: 0;
  margin-top: 12px;
}
@keyframes sk-pulse {
  50% {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sk {
    animation: none;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.shell :focus-visible {
  outline: 2px solid var(--a-focus);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Casca do app: menu lateral, conta e topo. No celular o menu vira barra inferior.
   --------------------------------------------------------------------------- */
/* As alturas em vh/dvh são divididas pela escala: dentro de um elemento com zoom, 100dvh
   renderiza maior que a janela. */
.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh / var(--zoom));
  min-height: calc(100dvh / var(--zoom));
}
.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-300%);
  z-index: 50;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--a-ink);
  color: var(--a-bg);
  font-size: 14px;
}
.skip:focus {
  transform: none;
}
.side {
  position: sticky;
  top: 0;
  height: calc(100vh / var(--zoom));
  height: calc(100dvh / var(--zoom));
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 12px 12px;
  background: var(--a-side);
  color: var(--a-side-ink);
}
/* Marca: logo COMMIT (arquivo oficial) + selo LAB. */
.side__brand,
.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 8px;
  text-decoration: none;
}
.brand__logo {
  display: block;
  width: auto;
  height: 22px;
}
.brand__lab {
  /* Texto centrado dentro da pílula: corta o espaço acima das maiúsculas e abaixo da linha de base. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-box: trim-both cap alphabetic;
  /* O espaçamento entre letras também cai depois do último "B": a margem da direita desconta. */
  padding: 3px calc(6px - 0.14em) 2px 6px;
  border-radius: 5px;
  background: var(--brand-magenta);
  color: #ffffff;
  font: 600 11px/1 var(--font-display);
  letter-spacing: 0.14em;
}
.side :focus-visible {
  outline-color: #ffffff;
}
.nav {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 2px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--a-side-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover {
  background: var(--a-side-hover);
  color: var(--a-side-ink);
}
/* Item ativo: fundo claro sobre o navy e a barra magenta à esquerda. */
.nav a.active {
  background: rgb(255 255 255 / 0.1);
  box-shadow: inset 3px 0 0 var(--brand-magenta);
  color: var(--a-side-ink);
  font-weight: 600;
}
.nav__sep {
  height: 1px;
  margin: 10px;
  background: var(--a-side-line);
}
.account {
  position: relative;
}
.account summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}
.account summary::-webkit-details-marker {
  display: none;
}
.account summary:hover,
.account[open] summary {
  background: var(--a-side-hover);
}
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-magenta);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}
.account__who {
  flex: 1;
  min-width: 0;
  display: grid;
  line-height: 1.25;
}
.account__who b {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account__who small {
  font-size: 12px;
  color: var(--a-side-muted);
}
.account__caret {
  width: 16px;
  height: 16px;
  color: var(--a-side-muted);
}
.menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 30;
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--a-line);
  border-radius: 12px;
  background: var(--a-surface);
  box-shadow: var(--a-shadow);
}
.menu__email {
  margin: 0 0 4px;
  padding: 6px 10px 8px;
  border-bottom: 1px solid var(--a-line);
  font-size: 13px;
  color: var(--a-muted);
  overflow-wrap: anywhere;
}
.menu__item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--a-ink);
  font-size: 14px;
  text-align: left;
  text-decoration: none;
}
.menu__item:hover {
  background: var(--a-surface-hover);
}
.menu__item--mobile {
  display: none;
}
/* O conteúdo ocupa toda a largura. As colunas de cada seção mudam conforme a largura DESTE
   elemento (consultas de contêiner, no fim do arquivo), e não da janela: assim valem igual
   com ou sem a escala das telas grandes. */
.main {
  width: 100%;
  padding: 28px clamp(16px, 3.2vw, 40px) 56px;
  outline: none;
  container: main / inline-size;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.top__text {
  min-width: 0;
}
.top__actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn[aria-pressed="true"] {
  border-color: var(--a-ink);
  background: var(--a-surface-2);
}
.top h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.top p {
  max-width: 80ch;
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--a-muted);
}
.top p::first-letter {
  text-transform: uppercase;
}
.view {
  display: none;
}
.view.active {
  display: block;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--a-line);
  border-radius: 9px;
  background: var(--a-surface);
  color: var(--a-ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--a-surface-hover);
}
.btn:active {
  transform: translateY(0.5px);
}
.btn.primary {
  background: var(--a-accent);
  border-color: var(--a-accent);
  color: var(--a-accent-ink);
}
.btn.primary:hover {
  background: var(--a-accent-hover);
  border-color: var(--a-accent-hover);
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn--file {
  cursor: pointer;
}
.linkbtn,
.recordactions button,
.newsitem button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--a-ink);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--a-line);
  text-underline-offset: 3px;
}
.linkbtn:hover,
.recordactions button:hover,
.newsitem button:hover {
  text-decoration-color: currentColor;
}

/* ---------------------------------------------------------------------------
   Visão geral
   --------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.stat {
  display: grid;
  gap: 2px;
  padding: 16px;
  border: 1px solid var(--a-line);
  border-radius: 14px;
  background: var(--a-surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 120ms ease;
}
.stat:hover {
  border-color: var(--a-muted);
}
.stat__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--a-muted);
}
.stat__value {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__hint {
  font-size: 13px;
  color: var(--a-muted);
}
.stat--alert .stat__hint {
  color: var(--a-error);
  font-weight: 500;
}
.ov {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
/* minmax(0, 1fr): a coluna pode ficar mais estreita que o maior texto sem quebra do cartão
   (com "auto", a fonte da notícia mais o botão alargavam o cartão e estouravam a tela). */
.ov__main,
.ov__side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}
.card {
  padding: 20px;
  border: 1px solid var(--a-line);
  border-radius: 14px;
  background: var(--a-surface);
}
.card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}
.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.card__link {
  font-size: 13px;
  color: var(--a-muted);
  white-space: nowrap;
  text-decoration: none;
}
.card__link:hover {
  color: var(--a-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.card__meta {
  font-size: 13px;
  color: var(--a-muted);
  font-variant-numeric: tabular-nums;
}
.card__note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--a-muted);
}
.card__note b {
  font-weight: 600;
  color: var(--a-ink);
}
.card--quiet {
  background: var(--a-surface-2);
}
.card--quiet p {
  max-width: 70ch;
  margin: 6px 0 14px;
  font-size: 14px;
  color: var(--a-muted);
}
.rows,
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rows > li + li,
.steps > li + li {
  border-top: 1px solid var(--a-line);
}
.rowlink,
.step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -8px;
  padding: 12px 8px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}
.rowlink:hover,
.step:hover {
  background: var(--a-surface-hover);
}
.rowlink__text,
.step__text {
  flex: 1;
  min-width: 0;
  display: grid;
  line-height: 1.35;
}
.rowlink__text b,
.step__text b {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.rowlink__text small,
.step__text small {
  font-size: 13px;
  color: var(--a-muted);
}
.rowlink__action {
  font-size: 13px;
  color: var(--a-muted);
}
.rowlink > .icon,
.step > .icon {
  width: 16px;
  height: 16px;
  color: var(--a-muted);
}
.datebox {
  flex: none;
  display: grid;
  justify-items: center;
  width: 44px;
  padding: 5px 0;
  border: 1px solid var(--a-line);
  border-radius: 9px;
  background: var(--a-bg);
  line-height: 1.1;
}
.datebox b {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.datebox small {
  font-size: 11px;
  color: var(--a-muted);
}
.datebox--late {
  border-color: color-mix(in srgb, var(--a-error) 45%, var(--a-line));
}
.datebox--late b {
  color: var(--a-error);
}
.datebox--none b {
  color: var(--a-muted);
}
.datebox--none small {
  font-size: 9.5px;
}
.chip {
  flex: none;
  padding: 2px 9px;
  border: 1px solid var(--a-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--a-muted);
  white-space: nowrap;
}
.chip--alert {
  border-color: color-mix(in srgb, var(--a-error) 40%, var(--a-line));
  color: var(--a-error);
}
.step__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--a-line);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  color: var(--a-muted);
}
.step__mark .icon {
  width: 14px;
  height: 14px;
}
.step.is-done .step__mark {
  border-color: var(--a-ink);
  background: var(--a-ink);
  color: var(--a-bg);
}
.step.is-done .step__text b {
  font-weight: 400;
  color: var(--a-muted);
}
.blank {
  padding: 4px 0 2px;
}
.blank p {
  max-width: 52ch;
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--a-muted);
}
.blank p:last-child {
  margin-bottom: 0;
}
.newsline {
  padding: 12px 0;
}
.newsline:first-child {
  padding-top: 2px;
}
.newsline:last-child {
  padding-bottom: 0;
}
.newsline > a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--a-ink);
  text-decoration: none;
}
.newsline > a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.newsline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  margin-top: 4px;
}
.newsline__meta small {
  min-width: 0;
  font-size: 13px;
  color: var(--a-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}
.figures dt {
  font-size: 13px;
  color: var(--a-muted);
}
.figures dd {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------------------
   Componentes das demais seções (estúdio, radar, planejamento, resultados,
   configurações, equipe). Mesma estrutura do protótipo, já no tema neutro;
   cada seção será redesenhada na sua vez.
   --------------------------------------------------------------------------- */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 16px;
  align-items: start;
}
.panel,
.metric,
.newsitem {
  border: 1px solid var(--a-line);
  border-radius: 14px;
  background: var(--a-surface);
}
.panel {
  padding: 20px;
}
.panel h2 {
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 600;
}
.panel .sub {
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--a-muted);
}
.sectiontop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 12px;
}
.sectiontop h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.sectiontop small {
  font-size: 13px;
  color: var(--a-muted);
}
.overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 16px;
}
.overview--two {
  grid-template-columns: repeat(2, 1fr);
}
.metric {
  padding: 16px;
}
.metric .lbl {
  font-size: 13px;
  font-weight: 500;
  color: var(--a-muted);
}
.metric strong {
  display: block;
  margin: 2px 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.metric .hint {
  font-size: 13px;
  color: var(--a-muted);
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--a-line);
  border-radius: 9px;
  background: var(--a-bg);
  color: var(--a-ink);
  font-size: 14.5px;
}
.field textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.5;
}
/* Campo que cresce sozinho com o texto (dom.js, autoGrow): começa baixo, não tem alça de
   redimensionar e, a partir do limite, rola por dentro. */
.field textarea[data-autogrow] {
  min-height: 0;
  max-height: 240px;
  resize: none;
  overflow-y: auto;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--a-muted);
  opacity: 0.85;
}
.field .micro {
  font-size: 12.5px;
  color: var(--a-muted);
}
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.row .field {
  flex: 1;
  min-width: 145px;
}
.row--between {
  justify-content: space-between;
}
.row--start {
  align-items: start;
}
.result {
  min-height: 240px;
  padding: 16px;
  border: 1px solid var(--a-line);
  border-radius: 12px;
  background: var(--a-bg);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.7;
}
.muted {
  color: var(--a-muted);
}
.small {
  font-size: 13px;
}
.small-link {
  font-size: 13px;
  color: var(--a-ink);
  text-underline-offset: 3px;
}
.record {
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--a-line);
  border-radius: 12px;
  background: var(--a-bg);
}
.record b {
  font-size: 14.5px;
  font-weight: 600;
}
.record .metadata {
  margin: 4px 0;
  font-size: 12.5px;
  color: var(--a-muted);
}
.record p {
  margin: 8px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--a-muted);
}
.record a {
  color: var(--a-ink);
  text-underline-offset: 3px;
}
.record .recordactions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.record--intro {
  margin: 14px 0 16px;
}
.status,
.task .tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--a-line);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--a-muted);
}
.empty {
  padding: 28px 18px;
  border: 1px dashed var(--a-line);
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--a-muted);
}
.empty-col {
  padding: 10px;
}
.notice {
  margin: 14px 0;
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--a-warn) 35%, var(--a-line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--a-warn) 8%, var(--a-surface));
  color: var(--a-warn);
  font-size: 13.5px;
  line-height: 1.55;
}
.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.column {
  min-height: 240px;
  padding: 12px;
  border-radius: 12px;
  background: var(--a-surface-2);
}
.column h3 {
  margin: 4px 6px 12px;
  font-size: 13.5px;
  font-weight: 600;
}
.task {
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--a-line);
  border-radius: 10px;
  background: var(--a-surface);
}
.task b {
  font-size: 14px;
  font-weight: 600;
}
.task p {
  margin: 4px 0 8px;
  font-size: 12.5px;
  color: var(--a-muted);
}
.select-compact,
.status-select {
  padding: 6px 8px;
  border: 1px solid var(--a-line);
  border-radius: 8px;
  background: var(--a-bg);
  color: var(--a-ink);
  font-size: 13px;
}
.status-select {
  width: 100%;
}
.footnote {
  max-width: 90ch;
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--a-muted);
}
.site-footer {
  padding-top: 28px;
}
.settings-list {
  display: grid;
  gap: 10px;
}
.settings-list .record {
  margin: 0;
}
.settingchip {
  font-size: 12px;
  font-weight: 500;
  color: var(--a-muted);
}

/* Notícias (seção Radar) */
.newsbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.newsfilters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.newsfilters button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--a-line);
  border-radius: 999px;
  background: var(--a-surface);
  color: var(--a-muted);
  font-size: 13px;
  font-weight: 500;
}
.newsfilters button:hover {
  color: var(--a-ink);
}
.newsfilters button.selected {
  border-color: var(--a-ink);
  background: var(--a-ink);
  color: var(--a-bg);
}
.newsgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.newsitem {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}
.newsitem h3 {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.35;
  font-weight: 600;
}
.newsitem .topic {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--a-muted);
}
.newsitem .source {
  font-size: 12.5px;
  color: var(--a-muted);
}
.newsitem .newsactions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}
.newsitem a {
  font-size: 13px;
  font-weight: 500;
  color: var(--a-ink);
  text-decoration-color: var(--a-line);
  text-underline-offset: 3px;
}
.newsbanner {
  margin-top: 8px;
  font-size: 13px;
  color: var(--a-muted);
}
.newsbanner.error {
  color: var(--a-error);
}

/* ---------------------------------------------------------------------------
   Radar: faixa de correr, abas, notícias, "Em alta" e referências
   --------------------------------------------------------------------------- */
.ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 4px 0 12px;
  border: 1px solid var(--a-line);
  border-radius: 12px;
  background: var(--a-surface);
}
.ticker__label {
  flex: none;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--a-accent);
  color: var(--a-accent-ink);
  font-size: 13px;
  font-weight: 600;
}
.ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  /* Some nas bordas, para o texto não cortar seco. */
  mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: ticker 60s linear infinite;
}
/* A faixa para em três casos: pausada no botão, com o mouse sobre as manchetes (para ler) e
   com o foco do teclado numa manchete. Antes a regra era ":hover" e ":focus-within" na faixa
   inteira: o botão de pausar guardava o foco depois do clique e a faixa não voltava a andar
   (Chrome, Edge e Firefox; no Safari o clique não dá foco ao botão), e no toque o ":hover"
   ficava preso depois de tocar. */
.ticker.is-paused .ticker__track {
  animation-play-state: paused;
}
@media (hover: hover) {
  .ticker__viewport:hover .ticker__track {
    animation-play-state: paused;
  }
}
.ticker__track:has(a:focus-visible) {
  animation-play-state: paused;
}
.ticker__track li {
  flex: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
/* Divisor "|" entre os itens. */
.ticker__track li::after {
  content: "|";
  margin: 0 16px;
  color: var(--a-muted);
}
.ticker__track a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--a-ink);
  font-size: 15px;
  text-decoration: none;
  white-space: pre;
}
.ticker__track a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ticker__source {
  color: var(--a-muted);
}
.ticker__toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--a-muted);
}
.ticker__toggle:hover {
  color: var(--a-ink);
}
.ticker__play,
.ticker.is-paused .ticker__pause {
  display: none;
}
.ticker.is-paused .ticker__play {
  display: block;
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}
/* Quem pede menos movimento ao sistema recebe a faixa parada (radar.js começa em pausa) e
   rolável à mão; o botão continua lá para quem quiser ver a faixa andando. */
@media (prefers-reduced-motion: reduce) {
  .ticker.is-paused .ticker__viewport {
    overflow-x: auto;
    mask-image: none;
    scrollbar-width: none;
  }
}
/* Barra do Radar: os temas das notícias ocupam a linha inteira, com "Atualizar" à direita.
   O seletor Notícias | Em alta só aparece até tablet; acima disso as duas ficam lado a lado. */
.radar__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 16px;
}
.radar__bar .newsfilters {
  flex: 1;
  min-width: 0;
  gap: 8px;
}
.radar[data-tab="salvas"] .radar__bar .newsfilters {
  visibility: hidden;
}
.tabs {
  display: none;
  align-items: center;
  gap: 4px;
}
.tabs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--a-muted);
  font-size: 15px;
  font-weight: 500;
}
.tabs__item:hover {
  color: var(--a-ink);
}
.tabs__item[aria-pressed="true"] {
  border-color: var(--a-line);
  background: var(--a-surface);
  color: var(--a-ink);
  font-weight: 600;
}
.tabs__count {
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--a-surface-2);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.tabs__refresh {
  margin-left: auto;
}
.tabs__refresh .icon {
  width: 16px;
  height: 16px;
}
/* "Atualizando…": o ícone gira e a lista atual esmaece até a resposta chegar. */
.tabs__refresh.is-loading {
  cursor: progress;
}
.tabs__refresh.is-loading .icon {
  animation: refresh-spin 0.9s linear infinite;
}
@keyframes refresh-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tabs__refresh.is-loading .icon {
    animation: none;
    opacity: 0.5;
  }
}
#newsFeed,
#trendsList {
  transition: opacity 0.2s ease;
}
#newsFeed[aria-busy="true"],
#trendsList[aria-busy="true"] {
  opacity: 0.5;
}
.radar__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.radar__main {
  min-width: 0;
}
/* Uma aba por vez. Em tela larga, "Em alta" fica sempre ao lado e a aba dela some. */
.radar__panel {
  display: none;
}
.radar[data-tab="noticias"] #radarNews,
.radar[data-tab="alta"] #radarTrends,
.radar[data-tab="salvas"] #radarSaved {
  display: block;
}
.card__meta.is-error {
  color: var(--a-error);
}
#savedFilters {
  margin-bottom: 8px;
}
.newslist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}
.rows.newslist > li + li {
  border-top: 0;
}
.newsrow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--a-line);
}
.newsrow__title,
.trend__news {
  color: var(--a-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.newsrow__title:hover,
.trend__news:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Fonte e ações sempre em linhas separadas: o alinhamento não muda com o tamanho do nome da fonte. */
.newsrow__meta {
  display: grid;
  gap: 2px;
  margin-top: auto;
}
.newsrow__meta small,
.trend__body small,
.refrow__head small {
  font-size: 13px;
  color: var(--a-muted);
}
.newsrow__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}
.linkbtn:disabled {
  color: var(--a-muted);
  text-decoration: none;
  cursor: default;
}
a.linkbtn {
  display: inline-block;
}
.trend {
  display: flex;
  gap: 12px;
  padding: 12px 0;
}
.trend:first-child {
  padding-top: 4px;
}
.trend__body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.trend__body b {
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.trend__news {
  margin-top: 4px;
  font-weight: 400;
}
.trend__note {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.trend__group {
  margin: 16px 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--a-muted);
}
.trend__group:first-child {
  margin-top: 0;
}
.trends + .trend__group {
  padding-top: 16px;
  border-top: 1px solid var(--a-line);
}
.refrow {
  display: grid;
  gap: 4px;
  padding: 12px 0;
}
.refrow__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.refrow b {
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.refrow p {
  margin: 0;
  font-size: 13px;
  color: var(--a-muted);
  overflow-wrap: anywhere;
}
.radar__form {
  margin-top: 12px;
}

/* Mapa das notícias ("Onde acontece"), acima da lista. Aparece junto com as notícias. */
.map {
  display: none;
  margin-bottom: 16px;
}
.radar[data-tab="noticias"] #radarMap {
  display: block;
}
#radarMap .card__head {
  align-items: center;
}
/* Arrastar e pinçar ficam com o mapa: o dedo sobre ele não rola a página nem dá zoom nela. */
.map__stage {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--a-surface-2);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.map__stage.is-dragging {
  cursor: grabbing;
}
.map__svg {
  display: block;
  width: 100%;
  height: 100%;
}
#mapWorld path {
  fill: color-mix(in srgb, var(--a-ink) 11%, var(--a-surface));
  stroke: var(--a-surface-2);
  stroke-width: 0.8px;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
#mapWorld path.has-news {
  fill: color-mix(in srgb, var(--a-ink) 24%, var(--a-surface));
}
.map__pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Ponto: 10, 18 ou 24 px conforme o número de notícias; área de clique um pouco maior. */
.map__pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid var(--a-surface);
  border-radius: 999px;
  background: var(--a-accent);
  color: var(--a-accent-ink);
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  cursor: pointer;
  pointer-events: auto;
}
.map__pin::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
}
.map__pin--2 {
  width: 18px;
  height: 18px;
}
.map__pin--3 {
  width: 24px;
  height: 24px;
}
.map__count {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.map__pin[aria-pressed="true"] {
  z-index: 2;
  border-color: var(--a-accent);
  background: var(--a-surface);
  color: var(--a-accent-text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--a-accent) 30%, transparent);
}
.map__tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  display: none;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--a-ink);
  color: var(--a-bg);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}
.map__pin:hover,
.map__pin:focus-visible {
  z-index: 3;
}
.map__pin:hover .map__tip,
.map__pin:focus-visible .map__tip,
.map__pin[aria-pressed="true"] .map__tip {
  display: block;
}
/* Cartão do ponto (notebook e desktop): manchetes do lugar, ao lado do ponto. A posição vem do JS. */
.map__card {
  position: absolute;
  z-index: 5;
  width: min(340px, calc(100% - 16px));
  max-height: min(380px, calc(100% - 16px));
  overflow-y: auto;
  padding: 12px 14px;
  border: 1px solid var(--a-line);
  border-radius: 12px;
  background: var(--a-surface);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.16);
  cursor: default;
  touch-action: auto;
}
.map__cardhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 4px;
  font-size: 15px;
}
.map__cardhead small {
  font-size: 12px;
  color: var(--a-muted);
}
.map__cardlist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.map__cardlist .newsrow {
  padding: 10px 0;
}
.map__cardlist .newsrow:last-child {
  border-bottom: 0;
}
.map__cardlist .newsrow__title {
  font-size: 14px;
  line-height: 1.35;
}
/* Linha do cartão com capa: miniatura à esquerda, com o lugar reservado antes de a imagem chegar. */
.maprow--cover {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.maprow__thumb {
  display: none;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--a-surface-2);
}
.maprow--cover .maprow__thumb {
  display: block;
}
.maprow__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.maprow__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.map__cardmore {
  margin-top: 6px;
  font-size: 13px;
}
/* Zoom sem gesto (WCAG 2.5.7): +, − e Mundo, no canto. */
.map__zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--a-line);
  border-radius: 8px;
  background: var(--a-surface);
  box-shadow: var(--a-shadow);
}
.map__zoombtn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--a-ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.map__zoombtn + .map__zoombtn {
  border-left: 1px solid var(--a-line);
}
.map__zoombtn--text {
  font-size: 13px;
  font-weight: 500;
}
.map__zoombtn:hover:not(:disabled) {
  background: var(--a-surface-hover);
}
.map__zoombtn:disabled {
  color: var(--a-muted);
  opacity: 0.5;
  cursor: default;
}
.map__toggle {
  min-height: 32px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.map__toggle:hover {
  color: var(--a-ink);
}
/* Mapa escondido: só o cabeçalho, com "Mostrar mapa". */
.map.is-collapsed .map__body {
  display: none;
}
.map.is-collapsed .card__head {
  margin-bottom: 0;
}
/* Filtro por lugar no cabeçalho das notícias: clicar tira o filtro. */
.map__filter {
  margin-right: auto;
  border-color: var(--a-ink);
  background: var(--a-ink);
  color: var(--a-bg);
  cursor: pointer;
}
#radarNews .card__head {
  align-items: center;
}
@media (min-width: 1041px) {
  .radar[data-tab="alta"] #radarMap {
    display: block;
  }
}
/* Celular: mapa um pouco mais baixo; botões de zoom com alvo de toque de 44 px. */
@media (max-width: 760px) {
  .map__stage {
    height: 260px;
  }
  .map__zoombtn {
    min-width: 44px;
    height: 44px;
  }
  .map__pin::before {
    inset: -12px;
  }
}
@media (min-width: 1041px) {
  #radarTrends {
    display: block;
  }
  .radar[data-tab="alta"] #radarNews {
    display: block;
  }
}
@media (max-width: 1040px) {
  .radar__cols {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Até tablet: seletor e "Atualizar" na primeira linha; os temas descem para a segunda. */
  .tabs {
    display: flex;
    flex: 1;
  }
  .radar__bar .newsfilters {
    order: 3;
    flex: 1 0 100%;
  }
  .radar[data-tab="alta"] .radar__bar .newsfilters,
  .radar[data-tab="salvas"] .radar__bar .newsfilters {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
   Estúdio: busca de textos bíblicos (lista sob o campo e modal "Ver mais sugestões…")
   --------------------------------------------------------------------------- */
/* A lista fica no fluxo, logo abaixo do campo: dentro do cartão que rola, não é cortada. */
.bsuggest {
  overflow: hidden;
  border: 1px solid var(--a-line);
  border-radius: 10px;
  background: var(--a-surface);
  box-shadow: var(--a-shadow);
}
.bsuggest__status {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--a-muted);
}
.bsuggest__list,
.bdialog__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bres {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--a-line);
  cursor: pointer;
}
.bres:hover,
.bres[aria-selected="true"] {
  background: var(--a-surface-hover);
}
.bres[aria-selected="true"] {
  box-shadow: inset 3px 0 0 var(--a-ink);
}
.bres__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 14px;
}
.bres__theme {
  font-size: 11.5px;
}
.bres__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--a-muted);
}
.bres__text--full {
  display: block;
  color: var(--a-ink);
}
.bsuggest__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 6px 12px;
}
.bsuggest__more {
  min-height: 36px;
}
.bsuggest__credit {
  margin-left: auto;
  font-size: 12px;
  color: var(--a-muted);
}
/* Modal: quadro no centro no desktop; tela cheia no celular. */
.bdialog {
  /* As medidas de janela são divididas pela escala das telas grandes (zoom no body). */
  width: min(640px, calc(100vw / var(--zoom) - 32px));
  max-height: min(760px, calc(100dvh / var(--zoom) - 48px));
  padding: 0;
  border: 1px solid var(--a-line);
  border-radius: 14px;
  background: var(--a-surface);
  color: var(--a-ink);
  box-shadow: var(--a-shadow);
}
.bdialog[open] {
  display: flex;
  flex-direction: column;
}
.bdialog::backdrop {
  background: rgb(0 0 0 / 0.4);
}
.bdialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 8px;
}
.bdialog__head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.bdialog__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--a-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.bdialog__close:hover {
  color: var(--a-ink);
  background: var(--a-surface-hover);
}
.bdialog__search {
  margin: 0;
  padding: 0 20px;
}
.bdialog__search input {
  font-size: 16px;
}
/* Sem o "×" de limpar do campo de busca: ficava ao lado do "×" de fechar e confundia. */
.bdialog__search input::-webkit-search-cancel-button {
  display: none;
}
.bdialog__status {
  margin: 8px 20px 4px;
  font-size: 13px;
  color: var(--a-muted);
}
.bdialog__list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border-top: 1px solid var(--a-line);
}
.bres--button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--a-line);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 12px 20px;
}
.bdialog__foot {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--a-line);
}
.bdialog__credit {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--a-muted);
}
@media (max-width: 760px) {
  /* A lista rola para a vista acima da barra de navegação de baixo. */
  .bsuggest {
    scroll-margin-bottom: 88px;
  }
  .bdialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .bres {
    padding-block: 12px;
  }
  .bsuggest__more {
    min-height: 44px;
  }
}

/* ---------------------------------------------------------------------------
   Planejamento: editor, quadro de etapas e calendário
   --------------------------------------------------------------------------- */
.plan-editor {
  margin-bottom: 16px;
}
.plan-editor__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.plan-editor__title {
  grid-column: 1;
}
.plan-editor__desc {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.plan-editor .choices {
  margin-bottom: 16px;
}
.plan__tabs {
  display: flex;
  margin-bottom: 16px;
}
.plan__cols {
  display: grid;
  gap: 16px;
  align-items: start;
}
/* Uma visão por vez; em tela larga o calendário e o quadro ficam lado a lado (consulta de contêiner, no fim). */
.plan__panel {
  display: none;
  min-width: 0;
}
.plan[data-view="quadro"] #planBoardPanel,
.plan[data-view="calendario"] #planCalendarPanel {
  display: block;
}
.column h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.column__empty {
  margin: 0;
  padding: 8px 6px 12px;
  font-size: 13px;
  color: var(--a-muted);
}
.task {
  display: grid;
  gap: 8px;
}
.task__title {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--a-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
}
.task__title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.task__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.task__meta small {
  font-size: 13px;
  color: var(--a-muted);
}
.task p {
  margin: 0;
  font-size: 13px;
  color: var(--a-muted);
  overflow-wrap: anywhere;
}
.task__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}
.task__actions:empty {
  display: none;
}
.task__actions .linkbtn,
.task__actions .btn {
  white-space: normal;
  text-align: left;
}
.btn--icon {
  width: 32px;
  padding: 0;
}
.cal__head {
  align-items: center;
}
.cal__head h2::first-letter {
  text-transform: uppercase;
}
.cal__nav {
  display: flex;
  gap: 4px;
}
.cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cal__dow {
  padding: 4px 0;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: var(--a-muted);
}
.cal__day {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  min-height: 76px;
  padding: 6px;
  border: 1px solid var(--a-line);
  border-radius: 9px;
  background: var(--a-bg);
  color: var(--a-ink);
  text-align: left;
}
.cal__day:hover {
  border-color: var(--a-muted);
}
.cal__day.is-out {
  background: transparent;
  color: var(--a-muted);
}
.cal__day.is-selected {
  border-color: var(--a-ink);
  box-shadow: inset 0 0 0 1px var(--a-ink);
  background: var(--a-surface);
}
.cal__num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.cal__day.is-today .cal__num {
  background: var(--a-ink);
  color: var(--a-bg);
  font-weight: 600;
}
.cal__items {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.cal__chip {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--a-surface-2);
  color: var(--a-ink);
  font-size: 12px;
  line-height: 1.4;
  overflow: hidden;
  white-space: nowrap;
}
.cal__chip.is-done {
  color: var(--a-muted);
  text-decoration: line-through;
}
.cal__day.is-late .cal__chip:not(.is-done) {
  color: var(--a-error);
}
.cal__more {
  font-size: 12px;
  color: var(--a-muted);
}
/* Os pontos só aparecem quando as etiquetas não cabem (calendário estreito). */
.cal__dots {
  display: none;
  gap: 3px;
}
.cal__dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--a-ink);
}
.cal__day.is-late .cal__dots i {
  background: var(--a-error);
}
.cal__agenda {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--a-line);
}
.cal__agenda h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}
.cal__agenda .rowlink {
  width: calc(100% + 16px);
  border: 0;
  background: transparent;
  text-align: left;
}
.cal__empty {
  margin: 0;
  font-size: 15px;
  color: var(--a-muted);
}
.cal__agenda .flow__actions {
  margin-top: 12px;
}
/* Calendário estreito (coluna com menos de 520 px): etiquetas dão lugar a pontos. */
#planCalendarPanel {
  container: calendar / inline-size;
}
@container calendar (max-width: 520px) {
  .cal__day {
    align-items: center;
    min-height: 48px;
    padding: 4px 2px;
  }
  .cal__items {
    display: none;
  }
  .cal__dots {
    display: flex;
  }
}

/* ---------------------------------------------------------------------------
   Estúdio em etapas: briefing → rascunho → revisão
   --------------------------------------------------------------------------- */
.flow {
  max-width: 760px;
}
.flow__step {
  display: grid;
  gap: 16px;
}
.flow__head {
  margin-bottom: 20px;
}
.flow__head h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
}
.flow__head p,
.flow__hint {
  max-width: 80ch;
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--a-muted);
}
.flow__hint {
  margin: 0 0 12px;
}
.flow__head h2:focus,
.card__head h2:focus {
  outline: none;
}
.flow__label {
  margin: 20px 0 8px;
  font-size: 13px;
  font-weight: 600;
}
.flow__meta {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--a-muted);
  font-variant-numeric: tabular-nums;
}
.flow__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 20px;
}
.flow__status {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--a-muted);
}
.flow__status:empty {
  display: none;
}
.stepper {
  list-style: none;
  display: flex;
  gap: 8px;
  max-width: 760px;
  margin: 0 0 16px;
  padding: 0;
}
.stepper li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
/* Fio entre as etapas. */
.stepper li + li::before {
  content: "";
  flex: 1;
  min-width: 8px;
  height: 1px;
  background: var(--a-line);
}
.stepper li:first-child {
  flex: none;
}
.stepper__item {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--a-muted);
  font-size: 15px;
  font-weight: 500;
}
.stepper__item:disabled {
  cursor: default;
  opacity: 0.6;
}
.stepper__item:not(:disabled):hover {
  color: var(--a-ink);
}
.stepper__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--a-line);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stepper__item[aria-current="step"] {
  color: var(--a-ink);
  font-weight: 600;
}
.stepper__item[aria-current="step"] .stepper__mark {
  border-color: var(--a-ink);
  background: var(--a-ink);
  color: var(--a-bg);
}
.stepper__item.is-done .stepper__mark {
  border-color: var(--a-ink);
  color: var(--a-ink);
}
/* Opções tocáveis (formato e tom de voz) no lugar de listas suspensas. */
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.choices legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}
.choice {
  position: relative;
  display: block;
  cursor: pointer;
}
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice__box {
  display: grid;
  gap: 2px;
  height: 100%;
  min-height: 44px;
  align-content: center;
  padding: 12px;
  border: 1px solid var(--a-line);
  border-radius: 10px;
  background: var(--a-bg);
  font-size: 15px;
  line-height: 1.3;
}
.choice__box b {
  font-weight: 600;
}
.choice__box small {
  font-size: 13px;
  color: var(--a-muted);
}
.choice:hover .choice__box {
  border-color: var(--a-muted);
}
.choice input:checked + .choice__box {
  border-color: var(--a-ink);
  box-shadow: inset 0 0 0 1px var(--a-ink);
  background: var(--a-surface);
}
.choice input:focus-visible + .choice__box {
  outline: 2px solid var(--a-focus);
  outline-offset: 2px;
}
.choices--chips {
  display: flex;
  flex-wrap: wrap;
}
.choices--chips legend {
  float: left;
  width: 100%;
}
.choices--chips .choice__box {
  padding: 0 14px;
  border-radius: 999px;
}
.optional {
  font-weight: 400;
  color: var(--a-muted);
}
/* Nicho e tom de voz lado a lado (do tablet para cima); no celular, um embaixo do outro. */
.brief-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 0 24px;
  align-items: start;
}
.brief-pair > .field {
  margin: 0 0 20px;
}
.brief-pair > .field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 760px) {
  .brief-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Modelo de IA: o nome do provedor e, ao lado, o que esperar dele. */
.choices--models .choice__box {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.choices--models .choice__box b {
  font-size: 16px;
}
/* Corpo rolável de uma janela (roteiros salvos). */
.bdialog__body {
  min-height: 0;
  overflow-y: auto;
  padding: 4px 20px 20px;
}
.field__error {
  margin: 0;
  font-size: 13px;
  color: var(--a-error);
}
.field [aria-invalid="true"] {
  border-color: var(--a-error);
}
.disclosure {
  margin-top: 4px;
  border-top: 1px solid var(--a-line);
  padding-top: 12px;
  font-size: 15px;
}
.disclosure summary {
  display: inline-flex;
  align-items: center;
  /* inline-flex some com o espaço do HTML: sem o gap, ficava "Nichoopcional". */
  gap: 6px;
  min-height: 32px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--a-muted);
}
.disclosure summary:hover {
  color: var(--a-ink);
}
/* Campo opcional recolhido (ex.: nicho). */
.disclosure--field {
  margin: 0 0 16px;
  padding-top: 8px;
}
.disclosure--field .field {
  margin: 8px 0 0;
}
.beats {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--a-muted);
}
.beats b {
  font-weight: 600;
  color: var(--a-ink);
}
.btn--small {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}
.brief {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0;
}
.brief dt {
  font-size: 13px;
  color: var(--a-muted);
}
.brief dd {
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.result:empty::before {
  content: "Escreva ou cole o roteiro aqui.";
  color: var(--a-muted);
}
.result--readonly {
  max-height: 320px;
  min-height: 0;
  overflow-y: auto;
  background: var(--a-surface-2);
}
.rowitem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.rowitem__actions {
  flex: none;
  display: flex;
  gap: 16px;
}
.review-state {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--a-line);
  border-radius: 10px;
  background: var(--a-bg);
  font-size: 15px;
  font-weight: 500;
}
.review-state.alert {
  border-color: color-mix(in srgb, var(--a-error) 45%, var(--a-line));
  background: color-mix(in srgb, var(--a-error) 7%, var(--a-surface));
  color: var(--a-error);
}
.review-state.ready {
  border-color: color-mix(in srgb, var(--a-ok) 45%, var(--a-line));
  background: color-mix(in srgb, var(--a-ok) 8%, var(--a-surface));
  color: var(--a-ok);
}
.review-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0 0;
  padding: 12px;
  border: 1px solid var(--a-line);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}
.review-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--a-ink);
}
.review-check:has(input:disabled) {
  color: var(--a-muted);
  cursor: not-allowed;
}
.finding {
  padding: 12px 0;
  border-top: 1px solid var(--a-line);
  font-size: 15px;
  line-height: 1.55;
}
.finding strong {
  display: block;
  margin-bottom: 2px;
  color: var(--a-error);
}
#doctrineFindings:not(:empty) {
  margin-bottom: 12px;
}

/* Utilitários que substituem os atributos style= do protótipo: a CSP não permite estilo embutido. */
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-13 { margin-top: 13px; }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.toast {
  position: fixed;
  z-index: 9999;
  right: 18px;
  bottom: 18px;
  max-width: calc(100vw - 36px);
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--a-ink);
  color: var(--a-bg);
  font-size: 14px;
  box-shadow: var(--a-shadow);
}

/* Telas médias: menu mais estreito e painel em uma coluna. */
@media (max-width: 1040px) {
  .shell {
    grid-template-columns: 216px minmax(0, 1fr);
  }
  .ov,
  .cols {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Celular: topo com a marca e a conta; seções na barra inferior. */
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .side {
    z-index: 20;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 8px 6px;
  }
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--a-line);
    background: var(--a-surface);
  }
  .nav a {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 50px;
    padding: 4px 2px;
    font-size: 10.5px;
  }
  .nav a span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* A barra de baixo é clara: cores do conteúdo, não da lateral navy. */
  .nav a {
    color: var(--a-muted);
  }
  .nav a:hover {
    background: transparent;
    color: var(--a-ink);
  }
  .nav a.active {
    background: transparent;
    box-shadow: none;
    color: var(--a-accent-text);
  }
  .nav :focus-visible {
    outline-color: var(--a-focus);
  }
  .brand__logo {
    height: 20px;
  }
  .nav .icon {
    width: 22px;
    height: 22px;
  }
  .nav__sep,
  .nav a.nav__extra {
    display: none;
  }
  .account summary {
    padding: 4px;
  }
  .account__who,
  .account__caret {
    display: none;
  }
  .menu {
    top: calc(100% + 8px);
    bottom: auto;
    left: auto;
    right: 0;
    width: 232px;
  }
  .menu__item {
    min-height: 44px;
  }
  .menu__item--mobile {
    display: flex;
  }
  .main {
    padding: 20px 16px calc(84px + env(safe-area-inset-bottom));
  }
  .top {
    margin-bottom: 18px;
  }
  .top h1 {
    font-size: 22px;
  }
  /* No celular o botão do topo vira só o "+", para a data caber em uma linha. O rótulo segue lido por leitor de tela. */
  .top__actions .btn.primary {
    flex: none;
    width: 44px;
    padding: 0;
  }
  .top__actions .btn.primary .btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .btn {
    min-height: 44px;
  }
  .stats,
  .overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 14px;
  }
  .stat__value {
    font-size: 26px;
  }
  .board,
  .newsgrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .column {
    min-height: 0;
  }
  /* 16 px evita o zoom automático do iOS ao focar um campo. */
  .field input,
  .field select,
  .field textarea,
  .status-select,
  .select-compact {
    font-size: 16px;
  }
  .toast {
    left: 16px;
    right: 16px;
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
  /* Alvos de toque com pelo menos 44 px de altura. */
  .linkbtn,
  .card__link,
  .recordactions button,
  .newsitem button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .card__head {
    align-items: center;
    margin-bottom: 0;
  }
  .card {
    padding: 16px;
  }
  .rowlink__text b,
  .step__text b {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  .brief {
    grid-template-columns: minmax(0, 1fr);
  }
  .plan-editor__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .task__actions .btn,
  .task__actions .linkbtn {
    min-height: 44px;
  }
  .pager {
    justify-content: center;
  }
  .pager .btn {
    width: 44px;
  }
  .task__title {
    min-height: 32px;
  }
  .newslist {
    grid-template-columns: minmax(0, 1fr);
  }
  .tabs__item {
    min-height: 44px;
    padding: 0 10px;
  }
  /* No celular "Atualizar" vira só o ícone (o rótulo segue para leitor de tela): em 320 px o texto estourava a tela. */
  .tabs__refresh {
    flex: none;
    width: 44px;
    min-height: 44px;
    padding: 0;
  }
  .tabs__refresh .icon {
    width: 18px;
    height: 18px;
  }
  .tabs__refresh .btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .newsfilters button {
    min-height: 44px;
  }
  /* Temas das notícias numa linha só, rolável com o dedo (como as abas do X), em vez de três
     linhas de botões antes do conteúdo. A borda direita esmaece para mostrar que há mais. */
  .radar__bar .newsfilters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-right: -16px;
    padding-right: 32px;
    mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  }
  .radar__bar .newsfilters::-webkit-scrollbar {
    display: none;
  }
  .radar__bar .newsfilters button {
    flex: none;
  }
  .choices:not(.choices--chips) {
    grid-template-columns: minmax(0, 1fr);
  }
  .choices--chips .choice__box {
    min-height: 44px;
  }
  .stepper__label {
    font-size: 13px;
  }
  .result {
    font-size: 16px;
  }
  .flow__actions .btn {
    flex: 1 1 auto;
  }
}
.nav__short {
  display: none;
}
/* Telas estreitas (até 379 px): rótulo curto para caber sem cortar. Em 360 px o rótulo
   longo cabia, mas cortava quando a seção estava ativa, em negrito. */
@media (max-width: 379px) {
  .nav a .nav__long {
    display: none;
  }
  .nav a .nav__short {
    display: inline;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stat,
  .btn {
    transition: none;
  }
  .btn:active {
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
   Telas largas: mais colunas conforme a largura do conteúdo (.main).
   Referência (largura útil do conteúdo, sem o menu e sem as margens, medida em 23/11/2026):
   notebook 1280 = 952 px; desktop 1440 = 1112; Full HD = 1592; QHD (escala 1,25) = 1720;
   4K (escala 1,75) = 1866; ultrawide QHD = 2424; ultrawide 4K = 2598.
   --------------------------------------------------------------------------- */
/* Conteúdo estreito (tablet em pé, com o menu ao lado): o quadro empilha as etapas. Em 761 a
   820 px as três colunas ficavam com 145 px cada e estouravam a tela. */
@container main (max-width: 720px) {
  .board {
    grid-template-columns: minmax(0, 1fr);
  }
  .column {
    min-height: 0;
  }
}
/* A partir de um notebook: o Estúdio deixa a coluna única de 760 px. */
@container main (min-width: 900px) {
  .flow {
    max-width: none;
  }
  .flow__step {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
  }
  /* Rascunho: o texto à esquerda e o resumo do briefing fixo ao lado. */
  #studioStep2 > :first-child {
    order: 2;
    position: sticky;
    top: 16px;
  }
  #studioStep2 .brief {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Revisão: ocupa as duas colunas enquanto o aviso de "salvo" não aparece. */
  #studioStep3:has(#savedNotice[hidden]) > :first-child {
    grid-column: 1 / -1;
  }
}
/* Desktop e Full HD. */
@container main (min-width: 1400px) {
  .ov {
    grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
  }
  .ov__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  #ovSteps {
    grid-column: 1 / -1;
  }
  .steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
  .steps > li + li {
    border-top: 0;
  }
  .steps > li:nth-child(n + 3) {
    border-top: 1px solid var(--a-line);
  }
  .radar__cols {
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
  }
  .newslist {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .choices:not(.choices--chips) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .board {
    gap: 16px;
  }
  /* Planejamento: calendário e quadro lado a lado, sem o seletor. */
  .plan__tabs {
    display: none;
  }
  .plan__cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  }
  #planPage .plan__panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .plan-editor__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.6fr);
  }
}
/* Ultrawide (e 4K sem escala do sistema). */
@container main (min-width: 2200px) {
  .ov {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  }
  .ov__side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  /* Notícias numa coluna; resultados e aviso de backup empilhados na outra. */
  .ov__side > :first-child {
    grid-row: span 2;
  }
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .steps > li:nth-child(n + 3) {
    border-top: 0;
  }
  .radar__cols {
    grid-template-columns: minmax(0, 3.2fr) minmax(0, 1fr);
  }
  .newslist {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .flow__step {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
  .cols {
    gap: 24px;
  }
}

/* Ações de um item (Salvar, Criar roteiro, Abrir fonte): botões pequenos com ícone e contorno,
   para não passarem por texto comum. "Criar roteiro" é a ação que leva adiante e vem cheia. */
.act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--a-line);
  border-radius: 8px;
  background: var(--a-surface);
  color: var(--a-ink);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.act .icon {
  width: 15px;
  height: 15px;
}
.act:hover {
  border-color: var(--a-ink);
}
.act--strong {
  border-color: var(--a-ink);
  background: var(--a-ink);
  color: var(--a-bg);
}
.act--strong:hover {
  opacity: 0.88;
}
.act.is-on,
.act:disabled {
  border-color: transparent;
  background: var(--a-surface-2);
  color: var(--a-muted);
  cursor: default;
}
.newsrow__actions {
  gap: 8px;
  margin-top: 4px;
}
/* No celular, alvo de toque de 44 px. */
@media (max-width: 760px) {
  .act {
    min-height: 44px;
    padding: 0 12px;
  }
}
.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
/* Troca automática de página por esmaecimento (paginacao.js): 0,5 s some + 0,7 s surge. */
.is-fade-out {
  opacity: 0;
  transition: opacity 500ms ease;
}
.is-fade-in {
  animation: pager-fade-in 700ms ease both;
}
@keyframes pager-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-fade-out,
  .is-fade-in {
    transition: none;
    animation: none;
  }
}
.pager__label {
  min-width: 52px;
  font-size: 13px;
  text-align: center;
  color: var(--a-muted);
  font-variant-numeric: tabular-nums;
}
.pager .btn {
  font-size: 18px;
  line-height: 1;
}

/* ---------------------------------------------------------------------------
   Radar e Planejamento sem rolagem da página (notebook e desktop).
   A seção ocupa exatamente a altura da janela; as listas do Radar viram páginas (o tamanho
   da página é calculado em paginacao.js) e o quadro do Planejamento rola por coluna.
   Vale de 1041 px de largura e 640 px de altura para cima; abaixo disso a página rola.
   --------------------------------------------------------------------------- */
@media (min-width: 1041px) and (min-height: 640px) {
  .main[data-section="radar"],
  .main[data-section="planejamento"]:not(:has(#planEditor:not([hidden]))) {
    display: flex;
    flex-direction: column;
    height: calc(100dvh / var(--zoom));
    padding-bottom: 20px;
  }
  .main[data-section="radar"] > .top,
  .main[data-section="planejamento"]:not(:has(#planEditor:not([hidden]))) > .top {
    flex: none;
    margin-bottom: 16px;
  }
  .main[data-section="radar"] > .site-footer,
  .main[data-section="planejamento"]:not(:has(#planEditor:not([hidden]))) > .site-footer {
    display: none;
  }
  .main[data-section="radar"] > .view.active,
  .main[data-section="planejamento"]:not(:has(#planEditor:not([hidden]))) > .view.active {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  /* Radar */
  #radar .ticker,
  #radar .radar__bar {
    flex: none;
  }
  #radar .radar {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  #radar .radar__cols {
    flex: 1;
    min-height: 0;
    align-items: stretch;
    grid-template-rows: minmax(0, 1fr);
  }
  #radar .radar__main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
  }
  /* Com o mapa aberto, ele ocupa a coluna inteira e a lista de notícias some (pedido do usuário,
     25/11): as manchetes aparecem no cartão de cada ponto. Com o mapa recolhido ("Ver em lista"),
     as notícias voltam a ocupar a coluna. */
  #radar #radarMap {
    flex: 1 1 0;
    display: none;
    flex-direction: column;
    min-height: 0;
    margin-bottom: 0;
    padding: 16px 20px;
  }
  #radar .radar[data-tab="noticias"] #radarMap,
  #radar .radar[data-tab="alta"] #radarMap {
    display: flex;
  }
  #radar #radarMap.is-collapsed {
    flex: none;
    padding-block: 10px;
  }
  #radar .radar:not([data-tab="salvas"]) .radar__main:not(:has(#radarMap.is-collapsed)) #radarNews {
    display: none;
  }
  /* A dica curta do ponto dá lugar ao cartão com as manchetes. */
  #radar .map__tip {
    display: none;
  }
  #radar .map__body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  #radar .map.is-collapsed .map__body {
    display: none;
  }
  #radar .map__stage {
    flex: 1;
    min-height: 0;
    height: auto;
  }
  #radar .radar[data-tab="noticias"] #radarNews,
  #radar .radar[data-tab="alta"] #radarNews,
  #radar .radar[data-tab="salvas"] #radarSaved,
  #radar #radarTrends {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
  }
  #radar .card__head,
  #radar #savedFilters,
  #radar .pager {
    flex: none;
  }
  #radar .radar__panel > .footnote {
    display: none;
  }
  /* Toda área com rolagem ou corte próprio vira referência de posição: os textos para leitor de
     tela (.sr-only, position: absolute) dentro dela ficam contidos. Sem isso eles escapavam da
     coluna e esticavam a página (visto com 14 cartões no quadro). */
  #newsFeed,
  #trendsList,
  #radarSaved,
  .column,
  .cal__agenda {
    position: relative;
  }
  /* overflow-y: hidden é o sinal para a paginação calcular quantos itens cabem. */
  #newsFeed,
  #trendsList {
    flex: 1;
    min-height: 0;
    overflow-y: hidden;
  }
  /* Linhas de altura igual, para a conta de "quantas cabem" fechar. */
  /* As linhas têm altura mínima igual (a conta de "quantas cabem" usa esse mínimo) e crescem um
     pouco para ocupar a sobra, sem esticar demais numa última página com poucos itens. */
  #newsFeed .newslist {
    height: 100%;
    align-content: start;
    grid-auto-rows: minmax(122px, 172px);
  }
  #newsFeed .newsrow {
    overflow: hidden;
  }
  #newsFeed .newsrow__title,
  #trendsList .trend__news {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  #trendsList .trends {
    display: grid;
    height: 100%;
    align-content: start;
    grid-auto-rows: minmax(164px, 200px);
  }
  #trendsList .trend {
    overflow: hidden;
  }
  #trendsList .trend__body b,
  #trendsList .trend__body small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
  }
  /* Salvas e o formulário rolam dentro do cartão. */
  #radarSaved {
    overflow-y: auto;
  }

  /* Planejamento */
  .main[data-section="planejamento"]:not(:has(#planEditor:not([hidden]))) #planPage {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .main[data-section="planejamento"]:not(:has(#planEditor:not([hidden]))) .plan__tabs {
    flex: none;
  }
  /* A linha da grade precisa ter altura limitada (minmax(0, 1fr)); com "auto" ela cresce com o
     conteúdo e a página volta a rolar. */
  .main[data-section="planejamento"]:not(:has(#planEditor:not([hidden]))) .plan__cols {
    flex: 1;
    min-height: 0;
    align-items: stretch;
    grid-template-rows: minmax(0, 1fr);
  }
  .main[data-section="planejamento"]:not(:has(#planEditor:not([hidden]))) .plan[data-view="calendario"] #planCalendarPanel,
  .main[data-section="planejamento"]:not(:has(#planEditor:not([hidden]))) .plan[data-view="quadro"] #planBoardPanel {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .main[data-section="planejamento"]:not(:has(#planEditor:not([hidden]))) #planCalendar {
    flex: 1;
    min-height: 0;
  }
  .main[data-section="planejamento"]:not(:has(#planEditor:not([hidden]))) .cal {
    height: 100%;
    grid-template-rows: auto;
    grid-auto-rows: minmax(0, 1fr);
  }
  .main[data-section="planejamento"]:not(:has(#planEditor:not([hidden]))) .cal__day {
    min-height: 0;
    overflow: hidden;
  }
  .main[data-section="planejamento"]:not(:has(#planEditor:not([hidden]))) .cal__agenda {
    flex: none;
    max-height: 32%;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .main[data-section="planejamento"]:not(:has(#planEditor:not([hidden]))) .board {
    flex: 1;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
  }
  .main[data-section="planejamento"]:not(:has(#planEditor:not([hidden]))) .column {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .main[data-section="planejamento"]:not(:has(#planEditor:not([hidden]))) #planBoardPanel > .footnote {
    display: none;
  }
}

/* Estúdio sem rolagem da página, quando está em duas colunas (janela de 1228 px ou mais: 900 px
   de conteúdo). Cada cartão rola por dentro se precisar; no briefing, os botões de gerar ficam
   sempre à vista; no rascunho e na revisão, o texto ocupa a altura que sobra. */
@media (min-width: 1228px) and (min-height: 640px) {
  .main[data-section="estudio"] {
    display: flex;
    flex-direction: column;
    height: calc(100dvh / var(--zoom));
    padding-bottom: 20px;
  }
  .main[data-section="estudio"] > .top {
    flex: none;
    margin-bottom: 16px;
  }
  .main[data-section="estudio"] > .site-footer {
    display: none;
  }
  .main[data-section="estudio"] > .view.active,
  #estudio .flow {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  #estudio .stepper {
    flex: none;
  }
  #estudio .flow__step:not([hidden]) {
    flex: 1;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
  }
  #estudio .flow__step > .card {
    position: relative;
    top: auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }
  /* A lista de textos bíblicos rola para a vista acima da barra fixa de "Gerar". */
  #studioStep1 .bsuggest {
    scroll-margin-bottom: 100px;
  }
  #studioStep1 > .card:first-child .flow__actions {
    position: sticky;
    bottom: -20px;
    z-index: 1;
    margin: 20px -20px 0;
    padding: 12px 20px 20px;
    border-top: 1px solid var(--a-line);
    background: var(--a-surface);
  }
  #studioStep2 > .card:last-child,
  #studioStep3 > .card:first-child {
    display: flex;
    flex-direction: column;
  }
  #studioStep2 > .card:last-child > *,
  #studioStep3 > .card:first-child > * {
    flex: none;
  }
  /* Seletores com o mesmo peso da regra "flex: none" acima, para o texto ser o item que encolhe. */
  #studioStep2 > .card:last-child > .result {
    flex: 1;
    min-height: 96px;
    overflow-y: auto;
  }
  #studioStep3 > .card:first-child > .result--readonly {
    flex: 1;
    min-height: 96px;
    max-height: none;
  }
}

/* ---------------------------------------------------------------------------
   Telas grandes: a interface inteira ganha escala, para não ficar miúda num monitor QHD
   ou 4K usado sem a escala do sistema. Decide pela altura também: um ultrawide de 3440 px
   tem a mesma altura de um QHD e recebe a mesma escala.
   (Quem usa o 4K com 150% ou 200% de escala no sistema já entrega menos pixels ao
   navegador e cai nas regras normais.)
   --------------------------------------------------------------------------- */
@media (min-width: 2560px) and (min-height: 1300px) {
  :root {
    --zoom: 1.25;
  }
}
@media (min-width: 3840px) and (min-height: 1900px) {
  :root {
    --zoom: 1.75;
  }
}

/* ---------------------------------------------------------------------------
   Página inicial pública (antes do login) e páginas de texto
   --------------------------------------------------------------------------- */
.auth__google,
.auth__secondary {
  width: 100%;
  max-width: 360px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 10px;
  font: 500 15px/1 "DM Sans", system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, transform 80ms ease;
}
.auth__google {
  background: var(--a-surface);
  color: var(--a-ink);
  border: 1px solid var(--a-line);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}
.auth__google:hover {
  background: var(--a-surface-hover);
}
.auth__google:active,
.auth__secondary:active {
  transform: translateY(0.5px);
}
.auth__google:disabled {
  cursor: progress;
  opacity: 0.7;
}
.auth__secondary {
  margin-top: 10px;
  background: transparent;
  color: var(--a-ink);
  border: 1px solid var(--a-line);
}
.auth__secondary:hover {
  background: var(--a-surface-hover);
}
.auth__google:focus-visible,
.auth__secondary:focus-visible {
  outline: 2px solid var(--a-focus);
  outline-offset: 2px;
}
.auth__g {
  width: 18px;
  height: 18px;
  flex: none;
}
.auth__wordmark {
  margin: 0 0 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--a-ink);
}
.auth__wordmark span {
  font-weight: 700;
  letter-spacing: 0.08em;
}
.auth__message {
  max-width: 360px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--a-line);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--a-ink);
  background: var(--a-surface);
}
.auth__message.is-error {
  color: var(--a-error);
}
.auth__wordmark a,
.doc a,
.landing a {
  color: inherit;
  text-underline-offset: 3px;
}
.auth__wordmark a {
  text-decoration: none;
}
/* Páginas de texto (privacidade, termos), com os mesmos tokens neutros. */
.doc {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 16px 72px;
  color: var(--a-ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.doc h1 {
  font-family: inherit;
  font-style: normal;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  color: var(--a-ink);
}
.doc h2 {
  font-family: inherit;
  font-style: normal;
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 8px;
  color: var(--a-ink);
}
.doc p,
.doc li {
  color: var(--a-ink);
  font-size: 16px;
}
.doc ul {
  padding-left: 20px;
}
.doc li + li {
  margin-top: 6px;
}
.doc__meta,
.doc__links {
  color: var(--a-muted);
}
.doc__meta {
  margin: 0 0 24px;
  font-size: 14px;
}
.doc__links {
  margin-top: 40px;
  font-size: 14px;
}

/* ---------------------------------------------------------------------------
   Página inicial pública (antes do login)
   --------------------------------------------------------------------------- */
.landing {
  color: var(--a-ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* Reset com especificidade zero: as classes abaixo definem as margens sem disputa. */
:where(.landing) :is(h1, h2, h3, p) {
  font-family: inherit;
  font-style: normal;
  color: var(--a-ink);
  margin: 0;
}
/* Todas as faixas alinham o conteúdo na mesma coluna de 1088 px. */
.lp-nav,
.lp-hero,
.lp-section,
.lp-footer {
  padding-left: max(16px, calc((100% - 1088px) / 2));
  padding-right: max(16px, calc((100% - 1088px) / 2));
}
.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.lp-brand {
  padding-left: 0;
}
.lp-brand .brand__logo {
  height: 26px;
}
.lp-nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}
.lp-nav__links a {
  color: var(--a-muted);
  text-decoration: none;
}
.lp-nav__links a:hover {
  color: var(--a-ink);
}
.lp-btn {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  font: 500 14px/1 "DM Sans", system-ui, sans-serif;
  cursor: pointer;
}
.lp-btn--dark {
  background: var(--a-accent);
  color: var(--a-accent-ink);
  border: 1px solid var(--a-accent);
}
.lp-btn--dark:hover {
  background: var(--a-accent-hover);
}
.lp-btn:focus-visible,
.lp-nav__links a:focus-visible,
.lp-footer a:focus-visible {
  outline: 2px solid var(--a-focus);
  outline-offset: 2px;
  border-radius: 6px;
}
.lp-hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 64px;
  animation: auth-in 260ms cubic-bezier(0.2, 0, 0, 1) both;
}
.lp-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--a-accent-text);
  margin-bottom: 16px;
}
.lp-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.8vw, 52px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 19ch;
}
.lp-lead {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--a-muted);
  max-width: 46ch;
}
.lp-actions {
  margin-top: 28px;
}
.lp-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--a-muted);
}
/* Abertura: a marca grande e centralizada sobre navy, com a seta para seguir lendo. */
.lp-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Dividido pela escala das telas grandes (zoom no body), como o resto do app. */
  min-height: calc(100vh / var(--zoom));
  min-height: calc(100svh / var(--zoom));
  background: var(--a-side);
  color: #ffffff;
}
.lp-nav--intro {
  justify-content: flex-end;
}
.lp-nav--intro .lp-nav__links a {
  color: rgb(255 255 255 / 0.78);
}
.lp-nav--intro .lp-nav__links a:hover {
  color: #ffffff;
}
.lp-nav--intro :focus-visible,
.lp-intro__down:focus-visible {
  outline-color: #ffffff;
}
.lp-intro__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 16px 96px;
  text-align: center;
  animation: auth-in 400ms cubic-bezier(0.2, 0, 0, 1) both;
}
:where(.landing) .lp-intro__mark {
  /* O mesmo conjunto do menu lateral (logo de 22 px + selo LAB), ampliado por zoom. */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px; /* com o zoom, vira ~15 px na tela grande */
  margin: 0;
  zoom: 2.6;
}
@media (min-width: 600px) {
  :where(.landing) .lp-intro__mark {
    zoom: 4;
  }
}
@media (min-width: 1041px) {
  :where(.landing) .lp-intro__mark {
    zoom: 5.2;
  }
}
.lp-intro__logo {
  display: block;
  width: auto;
  height: 22px;
}
.lp-intro__lab {
  text-transform: uppercase;
}
:where(.landing) .lp-intro__tagline {
  margin: 0;
  color: rgb(255 255 255 / 0.78);
  font: italic 400 clamp(17px, 2vw, 24px) / 1.3 var(--font-display);
}
.lp-intro__down {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 999px;
  color: #ffffff;
  transform: translateX(-50%);
  animation: lp-bounce 1.8s ease-in-out infinite;
}
.lp-intro__down:hover {
  border-color: #ffffff;
  background: rgb(255 255 255 / 0.08);
}
.lp-intro__down svg {
  width: 22px;
  height: 22px;
}
/* Seta saltando sem parar (pedido do usuário): sobe, cai e quica de leve. */
@keyframes lp-bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -14px);
  }
  60% {
    transform: translate(-50%, -7px);
  }
}
/* A seta leva com rolagem suave até "Sobre" (sem animação para quem pediu menos movimento). */
html:has(.landing:not([hidden])) {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html:has(.landing:not([hidden])) {
    scroll-behavior: auto;
  }
  .lp-intro__center,
  .lp-intro__down {
    animation: none;
  }
}
/* ---------------------------------------------------------------------------
   Página inicial com rolagem lateral (notebook para cima; entrada.js liga a classe lp-wide).
   No celular e no tablet os invólucros não existem para o layout (display: contents).
   --------------------------------------------------------------------------- */
.lp-h,
.lp-h__sticky,
.lp-h__track {
  display: contents;
}
.lp-fly {
  display: none;
}
.lp-nav--intro {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--a-side);
}
html.lp-wide .lp-h {
  display: block;
  position: relative;
}
html.lp-wide .lp-h__sticky {
  display: block;
  position: sticky;
  top: 0;
  height: calc(100vh / var(--zoom) - var(--lp-foot-h, 0px));
  height: calc(100svh / var(--zoom) - var(--lp-foot-h, 0px));
  overflow: hidden;
  background: var(--a-bg);
}
html.lp-wide .lp-h__track {
  display: flex;
  height: 100%;
  will-change: transform;
}
/* Cada painel ocupa a janela inteira, sem rolar por dentro; o conteúdo fica centrado na altura. */
html.lp-wide .lp-h__track > * {
  flex: none;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding-top: 88px;
  padding-bottom: 32px;
  border-top: 0;
  animation: none;
}
html.lp-wide .lp-intro {
  padding: 0;
}
/* "Sobre" mantém as duas colunas (texto e prévia) e cabe na altura. */
html.lp-wide .lp-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-content: center;
  gap: 48px;
}
@media (max-height: 820px) {
  html.lp-wide .lp-hero .lp-title {
    font-size: clamp(32px, 3.6vw, 44px);
  }
  html.lp-wide .lp-hero .lp-lead {
    font-size: 16px;
  }
  html.lp-wide .lp-mock--small {
    display: none;
  }
}
html.lp-wide .lp-intro__mark {
  opacity: 0;
}
html.lp-wide .lp-intro__tagline,
html.lp-wide .lp-intro__down {
  opacity: var(--intro-fade, 1);
}
/* Menu por cima de tudo: branco sobre o navy da abertura, cores do conteúdo depois dela. */
/* Faixa fixa navy no topo (pedido do usuário): a marca do canto fica sempre branca. */
html.lp-wide .lp-nav--intro {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  height: 72px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--a-side);
}

/* Marca que voa do centro para o canto (a posição e a escala vêm de entrada.js). */
html.lp-wide .lp-fly {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 3px;
  transform-origin: 0 0;
  pointer-events: none;
}
.lp-fly__logo {
  display: block;
  height: 22px;
  width: auto;
}
.lp-fly__logo--escuro {
  display: none;
}
/* Bento grid dos recursos: 4 colunas, 2 faixas; o primeiro e o último cartão ocupam duas. */
html.lp-wide #recursos .lp-grid {
  flex: 1;
  min-height: 0;
  max-height: 560px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
html.lp-wide #recursos .lp-card:first-child,
html.lp-wide #recursos .lp-card:last-child {
  grid-column: span 2;
}
html.lp-wide #recursos .lp-card:first-child {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
}
html.lp-wide #recursos .lp-card:first-child :is(h3, p) {
  color: #ffffff;
}
html.lp-wide #recursos .lp-card:first-child .lp-card__icon {
  background: var(--brand-magenta);
  color: #ffffff;
}
html.lp-wide .lp-card {
  overflow: hidden;
}
html.lp-wide .lp-section h2 {
  font-family: var(--font-display);
  margin-bottom: 20px;
}
@media (max-height: 820px) {
  html.lp-wide .lp-card p {
    font-size: 13.5px;
    line-height: 1.45;
  }
  html.lp-wide .lp-section h2 {
    font-size: 24px;
    margin-bottom: 14px;
  }
}
/* Prévia do estúdio, montada em HTML com a estrutura real do roteiro */
.lp-preview {
  position: relative;
  display: grid;
  gap: 14px;
}
.lp-mock {
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--a-shadow);
}
.lp-mock__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--a-muted);
}
.lp-chip {
  border: 1px solid var(--a-line);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
}
.lp-mock__title {
  margin: 10px 0 14px;
  font-size: 17px;
  font-weight: 600;
}
.lp-timeline,
.lp-agenda {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.lp-timeline li {
  display: grid;
  grid-template-columns: 64px 130px 1fr;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.lp-timeline b {
  font-weight: 500;
  color: var(--a-muted);
  font-variant-numeric: tabular-nums;
}
.lp-timeline i {
  height: 8px;
  border-radius: 4px;
  background: var(--a-line);
}
.lp-timeline li:nth-child(odd) i {
  width: 80%;
}
.lp-mock__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--a-line);
  font-size: 12.5px;
  color: var(--a-muted);
}
.lp-mock__status .lp-icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--a-ink);
}
.lp-agenda li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.lp-agenda b {
  font-weight: 500;
  color: var(--a-muted);
}
.lp-agenda em {
  font-style: normal;
  font-size: 11px;
  color: var(--a-muted);
  border: 1px solid var(--a-line);
  border-radius: 999px;
  padding: 2px 8px;
}
.lp-section {
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid var(--a-line);
}
.lp-section h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}
.lp-band {
  background: var(--a-surface-2);
}
.lp-grid {
  display: grid;
  gap: 14px;
}
.lp-card {
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-radius: 14px;
  padding: 20px;
}
.lp-card__icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--a-surface-2);
  color: var(--a-ink);
  margin-bottom: 14px;
}
.lp-icon {
  width: 20px;
  height: 20px;
}
.lp-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.lp-card p,
.lp-steps p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--a-muted);
}
.lp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.lp-steps li {
  display: flex;
  gap: 14px;
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-radius: 14px;
  padding: 20px;
}
.lp-steps li > b {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--a-line);
  font-size: 14px;
  font-weight: 600;
}
.lp-steps h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.lp-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--a-line);
  font-size: 13px;
  color: var(--a-muted);
}
/* Notebook e desktop (pedido do usuário, 25/11): rodapé fixo na base; os painéis passam entre
   ele e a faixa do topo. No celular e no tablet o rodapé segue no fim da página, como era. */
html.lp-wide .landing {
  /* Altura do rodapé fixo: entrada.js mede e atualiza; o valor aqui vale até a medida chegar. */
  --lp-foot-h: 44px;
  padding-bottom: var(--lp-foot-h);
}
html.lp-wide .lp-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  align-items: center;
  gap: 4px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--a-bg);
  line-height: 1.4;
}
.lp-footer b {
  color: var(--a-ink);
  font-weight: 600;
}
@media (max-width: 599px) {
  .lp-nav__links a {
    display: none;
  }
  .lp-timeline li {
    grid-template-columns: 56px 1fr;
  }
  .lp-timeline i {
    display: none;
  }
  .lp-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}
@media (min-width: 600px) {
  .lp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lp-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .lp-steps li {
    flex-direction: column;
  }
}
@media (min-width: 960px) {
  .lp-hero {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    padding-top: 72px;
    padding-bottom: 96px;
  }
  .lp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .lp-mock--small {
    width: 72%;
    margin: -34px 0 0 auto;
    position: relative;
  }
}

@keyframes auth-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lp-hero {
    animation: none;
  }
  .auth__google,
  .auth__secondary {
    transition: none;
  }
}
