/**
 * Pulmo — Home v3 + acabamento da nova marca (header, menu, barra inferior e "Criar conteúdo").
 * Tudo fica sob html.hv3, que o home-v3.js liga. Com localStorage.pulmo_home_v2 = '1' nada daqui vale.
 * Carregado depois do theme-light.css: os !important abaixo vencem os do tema por especificidade.
 */

/* ===================================================================
   TOKENS
   =================================================================== */
html.hv3 {
  --hv-ink: #0f2a26;
  --hv-text: #44524f;
  --hv-muted: #6f7c78;
  --hv-line: #e3e9e7;
  --hv-surface: #ffffff;
  --hv-surface-2: #f2f6f5;
  --hv-surface-3: #e8efed;
  --hv-primary: #004343;
  --hv-primary-hover: #002e2e;
  --hv-deep: #04201f;
  --hv-gold: #e8a33d;
  --hv-gold-2: #f6c36b;
  --hv-gold-ink: #8a5a12;
  --hv-sched: #0e8a7e;
  --hv-pub: #22a06b;
  --hv-pending: #e8a33d;
  --hv-shadow: 0 1px 2px rgba(15, 42, 38, 0.05), 0 18px 40px -24px rgba(15, 42, 38, 0.32);
  --hv-shadow-lift: 0 2px 6px rgba(15, 42, 38, 0.06), 0 26px 48px -22px rgba(15, 42, 38, 0.42);
  --hv-radius: 22px;
  --hv-font: 'Plus Jakarta Sans', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hv-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --hv-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --hv-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
html.hv3[data-theme="dark"] {
  --hv-ink: #eef4f3;
  --hv-text: #b6c4c1;
  --hv-muted: #84958f;
  --hv-line: #1f2e33;
  --hv-surface: #0f1b20;
  --hv-surface-2: #14232a;
  --hv-surface-3: #1a2c33;
  --hv-primary: #2f8f8c;
  --hv-primary-hover: #3aa5a1;
  --hv-gold-ink: #f6c36b;
  --hv-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  --hv-shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 26px 48px -20px rgba(0, 0, 0, 0.9);
}

/* O céu da home V2 não aparece na v3 */
html.hv3 #main-content:has(.hv3-home) #v2-sky-bg { display: none !important; }

/* ===================================================================
   HOME — estrutura
   =================================================================== */
.hv3-home {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
  font-family: var(--hv-font);
  color: var(--hv-ink);
  padding-bottom: 32px;
  -webkit-font-smoothing: antialiased;
}
.hv3-home *, .hv3-home *::before, .hv3-home *::after { box-sizing: border-box; }
.hv3-home svg { display: block; }
.hv3-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* entrada em cascata */
.hv3-in { animation: hv3Up 0.75s var(--hv-ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes hv3Up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.hv3-card {
  background: var(--hv-surface);
  border-radius: var(--hv-radius);
  box-shadow: var(--hv-shadow);
  padding: 22px 24px 20px;
}
html.hv3[data-theme="dark"] .hv3-card { border: 1px solid var(--hv-line); }

.hv3-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.hv3-h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--hv-font);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hv-ink) !important;
}
.hv3-h2-spark { width: 16px; height: 16px; color: var(--hv-gold); animation: hv3Glint 3.2s ease-in-out infinite; }
.hv3-h2-spark svg { width: 100%; height: 100%; }
.hv3-sub { margin: 4px 0 0; font-size: 0.9rem; color: var(--hv-muted); font-weight: 500; }
/* menos texto: a home fica só com os títulos */
.hv3-home .hv3-sub { display: none; }
.hv3-home .hv3-sec-head { align-items: center; }
.hv3-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--hv-primary) !important;
  text-decoration: none !important;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s, gap 0.25s var(--hv-ease);
}
html.hv3[data-theme="dark"] .hv3-more { color: var(--hv-gold-2) !important; }
.hv3-more svg { width: 15px; height: 15px; }
.hv3-more:hover { background: var(--hv-surface-2); gap: 10px; }

/* ===================================================================
   HERO
   =================================================================== */
.hv3-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  padding: 44px 48px 30px;
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(232, 163, 61, 0.16) 0%, rgba(232, 163, 61, 0) 46%),
    linear-gradient(140deg, #005150 0%, #003b3b 42%, #04201f 100%);
  box-shadow: 0 30px 60px -32px rgba(0, 46, 46, 0.75), 0 2px 6px rgba(0, 46, 46, 0.12);
}
html.hv3[data-theme="dark"] .hv3-hero {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(232, 163, 61, 0.14) 0%, rgba(232, 163, 61, 0) 46%),
    linear-gradient(140deg, #0b4a49 0%, #08302f 45%, #051a1a 100%);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hv3-hero-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hv3-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}
.hv3-aurora--a { width: 420px; height: 420px; left: -120px; bottom: -220px; background: #1aa39a; animation: hv3Drift 16s ease-in-out infinite alternate; }
.hv3-aurora--b { width: 300px; height: 300px; right: 12%; top: -170px; background: #e8a33d; opacity: 0.28; animation: hv3Drift 20s ease-in-out infinite alternate-reverse; }
@keyframes hv3Drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, -30px, 0) scale(1.15); }
}

/* a estrela da marca, grande e lenta */
.hv3-hero-star {
  position: absolute;
  right: -46px;
  top: -52px;
  width: 250px;
  height: 250px;
  fill: var(--hv-gold);
  opacity: 0.92;
  filter: drop-shadow(0 0 40px rgba(232, 163, 61, 0.45));
  animation: hv3Star 14s ease-in-out infinite;
  transform-origin: 50% 50%;
}
@keyframes hv3Star {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50%      { transform: rotate(12deg) scale(1.06); }
}
.hv3-dust {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  color: #ffe2ad;
  opacity: 0;
  animation: hv3Twinkle 4.2s ease-in-out infinite;
  animation-delay: var(--d);
}
.hv3-dust svg { width: 100%; height: 100%; }
/* brilho suave para ícones (sem sumir) */
@keyframes hv3Glint {
  0%, 100% { opacity: 0.85; transform: scale(0.92) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1.08) rotate(20deg); }
}
@keyframes hv3Twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.7) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1.1) rotate(45deg); }
}

.hv3-hero-inner { position: relative; max-width: 660px; }
.hv3-date {
  margin: 0 0 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hv-gold-2);
}
.hv3-title { margin: 0 0 24px; font-weight: 400; line-height: 1; color: #fff !important; }
.hv3-title-hello {
  display: block;
  margin-bottom: 10px;
  font-family: var(--hv-font);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.78);
}
.hv3-title-ask {
  display: block;
  font-family: var(--hv-serif);
  font-size: clamp(2rem, 3.8vw, 3.05rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #fff;
}
.hv3-title-ask em {
  font-style: italic;
  color: var(--hv-gold-2);
  position: relative;
  white-space: nowrap;
}
/* sublinhado desenhado à mão que aparece uma vez */
.hv3-title-ask em::after {
  content: '';
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -0.06em;
  height: 0.09em;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.55;
  transform-origin: left;
  animation: hv3Draw 1.1s 0.6s var(--hv-ease) both;
}
@keyframes hv3Draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── hero "céu": fundo, texto e sol/lua conforme a hora (HERO_STYLE = 'sky') ── */
.hv3-hero--sky {
  --sky-ink: #fff;
  --sky-soft: rgba(255, 255, 255, 0.78);
  --sky-em: var(--hv-gold-2);
  --sky-date: var(--hv-gold-2);
  --sky-link: rgba(255, 255, 255, 0.88);
  --sky-link-hover: rgba(255, 255, 255, 0.12);
  background: var(--sky-bg) !important;
  transition: background 1.2s ease;
}
.hv3-hero--sky[data-tod="morning"] {
  --sky-bg: radial-gradient(70% 90% at 92% 8%, rgba(255, 214, 120, 0.7) 0%, rgba(255, 214, 120, 0) 60%),
            linear-gradient(165deg, #fff6e8 0%, #ffe3c0 48%, #ffc896 100%);
  --sky-ink: #3a1f0b; --sky-soft: rgba(58, 31, 11, 0.72); --sky-em: #c2560e; --sky-date: #b45309;
  --sky-link: #7a3c10; --sky-link-hover: rgba(122, 60, 16, 0.08);
  box-shadow: 0 30px 60px -34px rgba(194, 86, 14, 0.55), 0 2px 6px rgba(194, 86, 14, 0.08) !important;
}
.hv3-hero--sky[data-tod="afternoon"] {
  --sky-bg: radial-gradient(70% 90% at 92% 8%, rgba(255, 245, 200, 0.75) 0%, rgba(255, 245, 200, 0) 55%),
            linear-gradient(170deg, #eef7ff 0%, #cfe7ff 50%, #a6d1f7 100%);
  --sky-ink: #0b2948; --sky-soft: rgba(11, 41, 72, 0.72); --sky-em: #1d5fb8; --sky-date: #1d5fb8;
  --sky-link: #164a86; --sky-link-hover: rgba(22, 74, 134, 0.08);
  box-shadow: 0 30px 60px -34px rgba(29, 95, 184, 0.55), 0 2px 6px rgba(29, 95, 184, 0.08) !important;
}
.hv3-hero--sky[data-tod="evening"] {
  --sky-bg: radial-gradient(80% 70% at 85% 100%, rgba(255, 170, 100, 0.55) 0%, rgba(255, 170, 100, 0) 60%),
            linear-gradient(165deg, #2b1640 0%, #6b2a55 48%, #c95a4a 100%);
  --sky-em: #ffc98a; --sky-date: #ffc98a;
}
.hv3-hero--sky[data-tod="night"] {
  --sky-bg: radial-gradient(60% 80% at 88% 10%, rgba(120, 150, 255, 0.22) 0%, rgba(120, 150, 255, 0) 60%),
            linear-gradient(170deg, #040a1c 0%, #0a1733 52%, #13254a 100%);
  --sky-date: #a9bdf0;
}
/* no tema escuro o dia fica "cinematográfico", sem fundo claro ofuscando */
html.hv3[data-theme="dark"] .hv3-hero--sky[data-tod="morning"] {
  --sky-bg: radial-gradient(70% 90% at 92% 8%, rgba(255, 180, 90, 0.35) 0%, rgba(255, 180, 90, 0) 60%),
            linear-gradient(165deg, #4a2412 0%, #6e3416 45%, #1a2430 100%);
  --sky-ink: #fff; --sky-soft: rgba(255, 255, 255, 0.78); --sky-em: #ffc07a; --sky-date: #ffc07a;
  --sky-link: rgba(255, 255, 255, 0.88); --sky-link-hover: rgba(255, 255, 255, 0.12);
}
html.hv3[data-theme="dark"] .hv3-hero--sky[data-tod="afternoon"] {
  --sky-bg: radial-gradient(70% 90% at 92% 8%, rgba(150, 200, 255, 0.28) 0%, rgba(150, 200, 255, 0) 55%),
            linear-gradient(170deg, #134070 0%, #0e2e55 50%, #0b1d36 100%);
  --sky-ink: #fff; --sky-soft: rgba(255, 255, 255, 0.78); --sky-em: #9fd0ff; --sky-date: #9fd0ff;
  --sky-link: rgba(255, 255, 255, 0.88); --sky-link-hover: rgba(255, 255, 255, 0.12);
}

.hv3-hero--sky .hv3-date { color: var(--sky-date); }
.hv3-hero--sky .hv3-title, .hv3-hero--sky .hv3-title-ask { color: var(--sky-ink) !important; }
.hv3-hero--sky .hv3-title-hello { color: var(--sky-soft); }
.hv3-hero--sky .hv3-title-ask em { color: var(--sky-em); }
.hv3-home .hv3-hero--sky .hv3-link,
.hv3-home .hv3-hero--sky #home-quick-create-btn.hv3-link { color: var(--sky-link); }
.hv3-home .hv3-hero--sky .hv3-link:hover { background: var(--sky-link-hover); color: var(--sky-ink); }
.hv3-home .hv3-hero--sky .hv3-link--gold { color: var(--sky-em) !important; }

/* nuvens (dia) e estrelas (noite) */
.hv3-sky-clouds, .hv3-sky-stars { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s; }
.hv3-sky-clouds {
  background:
    radial-gradient(ellipse 220px 60px at 18% 30%, rgba(255, 255, 255, 0.75) 0%, transparent 70%),
    radial-gradient(ellipse 160px 44px at 58% 18%, rgba(255, 255, 255, 0.6) 0%, transparent 70%),
    radial-gradient(ellipse 260px 70px at 70% 92%, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
  animation: hv3Clouds 22s ease-in-out infinite alternate;
}
@keyframes hv3Clouds { from { transform: translateX(-12px); } to { transform: translateX(22px); } }
.hv3-hero--sky[data-tod="morning"] .hv3-sky-clouds,
.hv3-hero--sky[data-tod="afternoon"] .hv3-sky-clouds { opacity: 1; }
html.hv3[data-theme="dark"] .hv3-hero--sky .hv3-sky-clouds { opacity: 0.12; }
.hv3-sky-stars {
  background-image:
    radial-gradient(circle 1.5px at 8% 14%, #fff 0%, transparent 100%),
    radial-gradient(circle 1px at 22% 40%, #fff 0%, transparent 100%),
    radial-gradient(circle 2px at 36% 10%, #fff 0%, transparent 100%),
    radial-gradient(circle 1px at 47% 72%, #fff 0%, transparent 100%),
    radial-gradient(circle 1.5px at 60% 24%, #fff 0%, transparent 100%),
    radial-gradient(circle 1px at 66% 58%, #fff 0%, transparent 100%),
    radial-gradient(circle 2px at 74% 86%, #fff 0%, transparent 100%),
    radial-gradient(circle 1px at 92% 46%, #fff 0%, transparent 100%),
    radial-gradient(circle 1.5px at 96% 80%, #fff 0%, transparent 100%),
    radial-gradient(circle 1px at 14% 88%, #fff 0%, transparent 100%);
}
.hv3-hero--sky[data-tod="night"] .hv3-sky-stars { opacity: 1; animation: hv3Stars 4s ease-in-out infinite alternate; }
.hv3-hero--sky[data-tod="evening"] .hv3-sky-stars { opacity: 0.45; }
@keyframes hv3Stars { from { opacity: 0.55; } to { opacity: 1; } }

/* sol/lua no lugar da estrela */
.hv3-sky-icon {
  position: absolute;
  right: 9%;
  top: 50%;
  margin-top: -32px;
  transform: scale(2.3);
  transform-origin: center;
}
.hv3-sky-icon .v2-sun-wrap { animation: hv3SunFloat 6s ease-in-out infinite; }
@keyframes hv3SunFloat { 50% { transform: translateY(-4px); } }
/* lua crescente por sombra interna: funciona sobre qualquer céu */
.hv3-hero--sky .hv3-sky-icon .v2-moon {
  background: transparent !important;
  box-shadow: inset -11px 4px 0 0 #f6e7b4, 0 0 30px 4px rgba(246, 231, 180, 0.28) !important;
}

/* ── campo principal ── */
.hv3-composer {
  background: #fff;
  border-radius: 22px;
  padding: 6px 6px 6px;
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.4);
  transition: box-shadow 0.3s var(--hv-ease), transform 0.3s var(--hv-ease);
}
html.hv3[data-theme="dark"] .hv3-composer { background: #0f1b20; box-shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.hv3-composer:focus-within { box-shadow: 0 26px 54px -22px rgba(0, 0, 0, 0.6), 0 0 0 4px rgba(246, 195, 107, 0.45); }

.hv3-field { position: relative; }
.hv3-home .hv3-field textarea {
  display: block;
  width: 100%;
  min-height: 60px;
  max-height: 180px;
  margin: 0;
  padding: 18px 18px 8px;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  resize: none;
  background: transparent !important;
  font-family: var(--hv-font);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--hv-ink) !important;
  caret-color: var(--hv-gold);
}
/* algum estilo global de textarea vence classes; o id garante o campo limpo */
html.hv3 #hv3-root #hv3-theme { background: transparent !important; color: var(--hv-ink) !important; border: 0 !important; box-shadow: none !important; }
.hv3-ph {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  display: flex;
  align-items: center;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.45;
  color: #8b9895;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.2s;
}
.hv3-ph-text { overflow: hidden; text-overflow: ellipsis; }
.hv3-caret { flex-shrink: 0; width: 2px; height: 1.2em; margin-left: 2px; border-radius: 2px; background: var(--hv-gold); animation: hv3Blink 1s steps(1) infinite; }
@keyframes hv3Blink { 50% { opacity: 0; } }
.hv3-field.has-value .hv3-ph,
.hv3-field.is-focus .hv3-caret { opacity: 0; }
.hv3-field.has-value .hv3-ph { visibility: hidden; }

.hv3-field.is-nudge { animation: hv3Nudge 0.45s var(--hv-ease); }
@keyframes hv3Nudge {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
.hv3-field.is-glow::before {
  content: '';
  position: absolute;
  inset: 4px 6px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(246, 195, 107, 0), rgba(246, 195, 107, 0.35), rgba(246, 195, 107, 0));
  background-size: 200% 100%;
  animation: hv3Sweep 1.2s var(--hv-ease) both;
  pointer-events: none;
}
@keyframes hv3Sweep { from { background-position: 150% 0; opacity: 1; } to { background-position: -50% 0; opacity: 0; } }

.hv3-composer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 12px;
}
.hv3-formats {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px;
  mask-image: linear-gradient(90deg, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.hv3-formats::-webkit-scrollbar { display: none; }
.hv3-home .hv3-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  height: 36px;
  padding: 0 13px 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--hv-surface-2);
  color: var(--hv-text);
  font-family: var(--hv-font);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s var(--hv-ease), color 0.25s, transform 0.25s var(--hv-spring), box-shadow 0.25s;
}
.hv3-chip-ic { width: 16px; height: 16px; }
.hv3-chip-ic svg { width: 100%; height: 100%; }
.hv3-home .hv3-chip:hover { background: var(--hv-surface-3); color: var(--hv-ink); }
.hv3-home .hv3-chip:active { transform: scale(0.95); }
.hv3-home .hv3-chip.is-on {
  background: var(--hv-primary);
  color: #fff;
  box-shadow: 0 8px 16px -8px rgba(0, 67, 67, 0.8);
}
.hv3-home .hv3-chip.is-on .hv3-chip-ic { color: var(--hv-gold-2); }
.hv3-home .hv3-chip:focus-visible, .hv3-home .hv3-go:focus-visible, .hv3-home .hv3-link:focus-visible, .hv3-day:focus-visible, .hv3-tool:focus-visible, .hv3-home .hv3-idea-use:focus-visible {
  outline: 3px solid var(--hv-gold-2);
  outline-offset: 2px;
}

.hv3-home .hv3-go {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: 48px;
  padding: 0 20px 0 22px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #f6c36b 0%, #e8a33d 100%);
  color: #2a1b04;
  font-family: var(--hv-font);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(186, 120, 20, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.25s var(--hv-spring), box-shadow 0.25s;
}
.hv3-home .hv3-go::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  animation: hv3Shine 5.5s 2s ease-in-out infinite;
}
@keyframes hv3Shine { 0%, 70% { left: -60%; } 90%, 100% { left: 130%; } }
.hv3-go-ic { width: 18px; height: 18px; transition: transform 0.5s var(--hv-spring); }
.hv3-go-ic svg { width: 100%; height: 100%; }
.hv3-home .hv3-go:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(186, 120, 20, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.hv3-home .hv3-go:hover .hv3-go-ic { transform: rotate(90deg) scale(1.15); }
.hv3-home .hv3-go:active { transform: scale(0.97); }

.hv3-hero-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; margin-left: -10px; }
.hv3-home .hv3-link,
.hv3-home #home-quick-create-btn.hv3-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--hv-font);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.hv3-home .hv3-link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.hv3-link--gold { color: var(--hv-gold-2) !important; }
.hv3-link-ic { width: 17px; height: 17px; transition: transform 0.6s var(--hv-spring); }
.hv3-link-ic svg { width: 100%; height: 100%; }
.hv3-home .hv3-link.is-spin .hv3-link-ic { transform: rotate(360deg); }

/* ===================================================================
   STATUS (aprovação / próximo passo)
   =================================================================== */
.hv3-week .hv3-status-row { margin-top: 36px; }
.hv3-week .hv3-status--calm { background: var(--hv-surface-2); box-shadow: none; }
.hv3-status-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 16px; }
.hv3-status {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 16px 18px 16px 16px;
  border-radius: var(--hv-radius);
  text-decoration: none !important;
  background: var(--hv-surface);
  color: var(--hv-ink) !important;
  box-shadow: var(--hv-shadow);
  transition: transform 0.3s var(--hv-ease), box-shadow 0.3s;
}
a.hv3-status:hover { transform: translateY(-2px); box-shadow: var(--hv-shadow-lift); }
.hv3-status--gold { background: linear-gradient(120deg, #f8cf7f 0%, #eeac45 100%); color: #2a1b04 !important; box-shadow: 0 18px 36px -22px rgba(186, 120, 20, 0.9); }
.hv3-status--warn { background: linear-gradient(120deg, #f28b74 0%, #db4f3c 100%); color: #fff !important; }
html.hv3[data-theme="dark"] .hv3-status--calm { border: 1px solid var(--hv-line); }
.hv3-status-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hv3-status-text strong { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; }
.hv3-status-text span { font-size: 0.88rem; font-weight: 500; opacity: 0.8; }
.hv3-status-visual { flex-shrink: 0; }
/* foto do agente de IA, com a estrela da marca no canto */
.hv3-agent { position: relative; display: block; width: 56px; height: 56px; }
.hv3-agent img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 10px 20px -10px rgba(15, 42, 38, 0.6);
}
html.hv3[data-theme="dark"] .hv3-status--calm .hv3-agent img { border-color: var(--hv-surface-3); }
.hv3-agent-spark {
  position: absolute;
  right: -3px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hv-primary);
  color: var(--hv-gold-2);
  box-shadow: 0 0 0 2px #fff;
}
.hv3-agent-spark svg { width: 12px; height: 12px; animation: hv3Glint 3.2s ease-in-out infinite; }
.hv3-agent.is-busy::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--hv-gold);
  border-right-color: var(--hv-gold);
  animation: hv3Spin 1.4s linear infinite;
}
.hv3-agent-line {
  font-style: normal;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.6 !important;
}
.hv3-status .hv3-thumbs { flex-shrink: 0; }
/* dois avisos lado a lado: sem miniaturas, para o texto respirar */
.hv3-status-row:has(.hv3-status + .hv3-status) .hv3-thumbs { display: none; }
.hv3-agent-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv3-status-ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--hv-primary);
  color: var(--hv-gold-2);
}
.hv3-status--gold .hv3-status-ic { background: rgba(255, 255, 255, 0.55); color: #8a5a12; }
.hv3-status--warn .hv3-status-ic { background: rgba(255, 255, 255, 0.22); color: #fff; }
.hv3-status-ic svg { width: 22px; height: 22px; }
.hv3-status-ic.is-busy svg { animation: hv3Spin 2.4s linear infinite; }
@keyframes hv3Spin { to { transform: rotate(360deg); } }
.hv3-thumbs { display: flex; padding-left: 10px; }
.hv3-thumbs img {
  width: 46px;
  height: 46px;
  margin-left: -14px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.4);
  transform: rotate(calc((var(--k) - 1) * 6deg));
  transition: transform 0.35s var(--hv-spring);
  background: #fff;
}
a.hv3-status:hover .hv3-thumbs img { transform: rotate(calc((var(--k) - 1) * 10deg)) translateY(-2px); }
.hv3-home .hv3-status-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--hv-primary);
  color: #fff !important;
  font-family: var(--hv-font);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: gap 0.25s var(--hv-ease), background 0.2s;
}
.hv3-status--gold .hv3-status-cta { background: #2a1b04; color: #fff !important; }
.hv3-status--warn .hv3-status-cta { background: #fff; color: #b8321f !important; }
.hv3-home .hv3-status-cta svg { width: 15px; height: 15px; }
.hv3-home .hv3-status-cta:hover, a.hv3-status:hover .hv3-status-cta { gap: 10px; }

.hv3-banners:empty { display: none; }

/* ===================================================================
   PRIMEIROS PASSOS (dashboard.js _initGettingStarted) — mesmo markup, visual novo
   =================================================================== */
.hv3-gs:empty { display: none !important; }
.hv3-home #getting-started-sep { display: none !important; }
html.hv3 .hv3-home .gs-widget {
  border: 0 !important;
  border-radius: var(--hv-radius) !important;
  background: var(--hv-surface) !important;
  box-shadow: var(--hv-shadow) !important;
  overflow: hidden;
  animation: hv3Up 0.6s 0.1s var(--hv-ease) both;
}
html.hv3[data-theme="dark"] .hv3-home .gs-widget { border: 1px solid var(--hv-line) !important; }
html.hv3 .hv3-home .gs-header { gap: 14px; padding: 18px 20px 0; }
html.hv3 .hv3-home .gs-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(140deg, #005150, #04201f) !important;
  box-shadow: 0 10px 18px -10px rgba(0, 46, 46, 0.9);
}
html.hv3 .hv3-home .gs-icon svg { stroke: var(--hv-gold-2) !important; }
html.hv3 .hv3-home .gs-title { font-family: var(--hv-font); font-size: 1.05rem !important; font-weight: 800 !important; letter-spacing: -0.015em; color: var(--hv-ink) !important; }
html.hv3 .hv3-home .gs-sub { display: none; }
html.hv3 .hv3-home .gs-badge {
  padding: 5px 11px;
  background: #fdf1dc !important;
  color: var(--hv-gold-ink) !important;
  font-family: var(--hv-font);
  font-size: 0.8rem;
  font-weight: 800;
}
html.hv3[data-theme="dark"] .hv3-home .gs-badge { background: rgba(232, 163, 61, 0.16) !important; }
html.hv3 .hv3-home .gs-chevron { color: var(--hv-muted) !important; }
html.hv3 .hv3-home .gs-progress { height: 6px !important; margin: 16px 20px 18px; background: var(--hv-surface-2) !important; }
html.hv3 .hv3-home .gs-progress-fill { background: linear-gradient(90deg, #f6c36b, #e8a33d) !important; box-shadow: 0 0 12px rgba(232, 163, 61, 0.5); }
html.hv3 .hv3-home .gs-widget.is-open .gs-progress { margin-bottom: 8px; }
html.hv3 .hv3-home .gs-widget.is-open .gs-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
  padding: 8px 16px 18px;
}
html.hv3 .hv3-home .gs-step {
  gap: 10px;
  padding: 11px 12px;
  border: 0 !important;
  border-radius: 14px;
  background: var(--hv-surface-2);
  transition: background 0.2s, transform 0.25s var(--hv-spring);
}
html.hv3 .hv3-home .gs-step:hover { opacity: 1; background: var(--hv-surface-3); transform: translateY(-1px); }
html.hv3 .hv3-home .gs-step-check { width: 22px; height: 22px; border: 2px solid var(--hv-line) !important; background: var(--hv-surface); }
html.hv3 .hv3-home .gs-step.is-done .gs-step-check { background: var(--hv-pub) !important; border-color: var(--hv-pub) !important; }
html.hv3 .hv3-home .gs-step-label { font-family: var(--hv-font); font-size: 0.88rem; font-weight: 700; color: var(--hv-ink) !important; }
html.hv3 .hv3-home .gs-step.is-done { background: transparent; }
html.hv3 .hv3-home .gs-step.is-done .gs-step-label { color: var(--hv-muted) !important; font-weight: 600; }

/* ===================================================================
   SUA SEMANA
   =================================================================== */
.hv3-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.hv3-home .hv3-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 88px;
  padding: 10px 4px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: var(--hv-surface-2);
  color: var(--hv-ink);
  font-family: var(--hv-font);
  cursor: pointer;
  box-shadow: none;
  aspect-ratio: auto;
  animation: hv3Up 0.6s var(--hv-ease) both;
  animation-delay: calc(240ms + var(--k) * 45ms);
  transition: transform 0.3s var(--hv-spring), background 0.25s, border-color 0.25s, box-shadow 0.3s;
}
.hv3-day-name { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--hv-muted); }
.hv3-day-num { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.hv3-day-dots { display: flex; gap: 4px; height: 7px; transition: opacity 0.2s; }
.hv3-day-dots i, .hv3-legend i { display: block; width: 7px; height: 7px; border-radius: 50%; }
.is-sched { background: var(--hv-sched); }
.is-pub { background: var(--hv-pub); }
.is-pending { background: var(--hv-pending); }
.hv3-day-plus {
  position: absolute;
  bottom: 9px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  background: var(--hv-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s, transform 0.3s var(--hv-spring);
}
.hv3-home .hv3-day:hover { transform: translateY(-3px); background: var(--hv-surface); border-color: var(--hv-line); box-shadow: var(--hv-shadow-lift); }
.hv3-home .hv3-day:not(.has-content):hover .hv3-day-plus { opacity: 1; transform: scale(1); }
.hv3-home .hv3-day:not(.has-content):hover .hv3-day-dots { opacity: 0; }
.hv3-home .hv3-day.is-today {
  background: linear-gradient(160deg, #005150, #003333);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 26px -14px rgba(0, 67, 67, 0.9);
}
.hv3-home .hv3-day.is-today .hv3-day-name { color: var(--hv-gold-2); }
.hv3-home .hv3-day.is-today .hv3-day-plus { background: var(--hv-gold); color: #2a1b04; }
.hv3-home .hv3-day.is-today .hv3-day-dots i { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
.hv3-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 0.78rem; font-weight: 600; color: var(--hv-muted); }
.hv3-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ===================================================================
   IDEIAS
   =================================================================== */
.hv3-rail-nav { display: flex; gap: 8px; }
.hv3-home .hv3-round {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--hv-line);
  border-radius: 50%;
  background: var(--hv-surface);
  color: var(--hv-ink);
  cursor: pointer;
  transition: background 0.2s, transform 0.25s var(--hv-spring), opacity 0.2s;
}
.hv3-home .hv3-round svg { width: 17px; height: 17px; }
.hv3-home .hv3-round:hover:not(:disabled) { background: var(--hv-primary); border-color: var(--hv-primary); color: #fff; transform: scale(1.06); }
.hv3-home .hv3-round:disabled { opacity: 0.35; cursor: default; }

.hv3-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 300px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 4px;
  scrollbar-width: none;
  padding: 4px 4px 24px;
  margin: -4px -4px -20px;
}
.hv3-rail::-webkit-scrollbar { display: none; }
@media (min-width: 769px) {
  .hv3-rail {
    mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
  }
}
.hv3-idea {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
  padding: 20px 20px 18px;
  border-radius: var(--hv-radius);
  background: var(--hv-surface);
  box-shadow: var(--hv-shadow);
  scroll-snap-align: start;
  cursor: pointer;
  animation: hv3Up 0.6s var(--hv-ease) both;
  animation-delay: calc(var(--k) * 70ms);
  transition: transform 0.35s var(--hv-ease), box-shadow 0.35s;
}
html.hv3[data-theme="dark"] .hv3-idea { border: 1px solid var(--hv-line); }
.hv3-idea:hover { transform: translateY(-4px); box-shadow: var(--hv-shadow-lift); }
.hv3-idea-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  max-width: 100%;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fdf1dc;
  color: var(--hv-gold-ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.hv3[data-theme="dark"] .hv3-idea-tag { background: rgba(232, 163, 61, 0.14); }
.hv3-idea-tag svg { width: 12px; height: 12px; flex-shrink: 0; }
.hv3-idea--trend .hv3-idea-tag { background: #e3f1ef; color: #0b6b62; }
html.hv3[data-theme="dark"] .hv3-idea--trend .hv3-idea-tag { background: rgba(14, 138, 126, 0.18); color: #6fd3c8; }
.hv3-pulse { position: relative; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.hv3-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: hv3Ping 1.8s ease-out infinite; }
@keyframes hv3Ping { from { transform: scale(1); opacity: 0.6; } to { transform: scale(2.8); opacity: 0; } }
.hv3-idea-title {
  margin: 0;
  font-family: var(--hv-font);
  font-size: 1.00rem;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--hv-ink) !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hv3-idea-why {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--hv-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hv3-home .hv3-idea-use {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--hv-primary);
  font-family: var(--hv-font);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: gap 0.25s var(--hv-ease);
}
html.hv3[data-theme="dark"] .hv3-idea-use { color: var(--hv-gold-2); }
.hv3-home .hv3-idea-use svg { width: 15px; height: 15px; }
.hv3-idea:hover .hv3-idea-use { gap: 11px; }

.hv3-idea.is-skeleton { cursor: default; gap: 12px; }
.hv3-idea.is-skeleton span {
  display: block;
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--hv-surface-2) 0%, var(--hv-surface-3) 50%, var(--hv-surface-2) 100%);
  background-size: 200% 100%;
  animation: hv3Shimmer 1.4s linear infinite;
}
.hv3-idea.is-skeleton span:nth-child(1) { width: 34%; height: 24px; border-radius: 99px; }
.hv3-idea.is-skeleton span:nth-child(2) { width: 92%; height: 18px; }
.hv3-idea.is-skeleton span:nth-child(3) { width: 70%; }
@keyframes hv3Shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ===================================================================
   NOTÍCIAS MÉDICAS — destaque + lista
   =================================================================== */
.hv3-news-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-auto-rows: auto;
  gap: 14px;
}
.hv3-news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border-radius: var(--hv-radius);
  background: var(--hv-surface);
  box-shadow: var(--hv-shadow);
  animation: hv3Up 0.6s var(--hv-ease) both;
  animation-delay: calc(var(--k) * 70ms);
  transition: transform 0.35s var(--hv-ease), box-shadow 0.35s;
}
html.hv3[data-theme="dark"] .hv3-news-card { border: 1px solid var(--hv-line); }
.hv3-news-card:hover { transform: translateY(-3px); box-shadow: var(--hv-shadow-lift); }
/* destaque: ocupa a coluna da esquerda inteira, faixa verde da marca */
.hv3-news-card.is-featured {
  grid-row: span 3;
  justify-content: flex-end;
  gap: 14px;
  padding: 26px 26px 22px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(232, 163, 61, 0.22) 0%, rgba(232, 163, 61, 0) 50%),
    linear-gradient(150deg, #00504f 0%, #003535 55%, #04201f 100%);
}
.hv3-news-card.is-featured::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 170px;
  height: 170px;
  z-index: -1;
  background: var(--hv-gold);
  opacity: 0.16;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.7 5.6 4.9 9.8 10.5 10.5-5.6.7-9.8 4.9-10.5 10.5C11.3 16.9 7.1 12.7 1.5 12 7.1 11.3 11.3 7.1 12 1.5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.7 5.6 4.9 9.8 10.5 10.5-5.6.7-9.8 4.9-10.5 10.5C11.3 16.9 7.1 12.7 1.5 12 7.1 11.3 11.3 7.1 12 1.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: hv3Star 14s ease-in-out infinite;
}

.hv3-news-source { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hv3-news-logo {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--hv-line);
  overflow: hidden;
}
.hv3-news-logo::before { content: attr(data-initial); font-weight: 800; font-size: 0.95rem; color: var(--hv-primary); }
.hv3-news-logo img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; background: #fff; }
.is-featured .hv3-news-logo { width: 46px; height: 46px; border: 0; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.6); }
.hv3-news-portal { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.hv3-news-portal strong { font-size: 0.86rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv3-news-portal span { font-size: 0.74rem; font-weight: 600; color: var(--hv-muted); }
.is-featured .hv3-news-portal span { color: rgba(255, 255, 255, 0.65); }
.hv3-news-tag {
  margin-left: auto;
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fdf1dc;
  color: var(--hv-gold-ink);
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.is-featured .hv3-news-tag { background: rgba(246, 195, 107, 0.18); color: var(--hv-gold-2); }
.hv3-news-title {
  margin: 5px 0 15px 0;
  font-family: var(--hv-font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--hv-ink) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.is-featured .hv3-news-title {
  font-family: var(--hv-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff !important;
  -webkit-line-clamp: 4;
}
.hv3-news-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--hv-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hv3-news-card:not(.is-featured) .hv3-news-text { display: none; }
.is-featured .hv3-news-text { color: rgba(255, 255, 255, 0.78); -webkit-line-clamp: 3; }

.hv3-news-actions { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.hv3-news-cta-label { margin-right: 2px; font-size: 0.76rem; font-weight: 700; color: var(--hv-muted); }
.is-featured .hv3-news-cta-label { color: rgba(255, 255, 255, 0.65); }
.hv3-home .hv3-news-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--hv-surface-2);
  color: var(--hv-ink);
  font-family: var(--hv-font);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.25s var(--hv-spring);
}
.hv3-news-btn svg { width: 15px; height: 15px; }
.hv3-home .hv3-news-btn:hover { background: var(--hv-surface-3); transform: translateY(-1px); }
.hv3-home .hv3-news-btn[data-news-act="carousel"] { background: #0e8a7e; color: #fff; }
.hv3-home .hv3-news-btn[data-news-act="post"] { background: #2f7fd1; color: #fff; }
.hv3-home .hv3-news-btn[data-news-act]:hover { filter: brightness(1.08); }
.hv3-home .is-featured .hv3-news-btn { height: 40px; padding: 0 16px 0 12px; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.5); }
.hv3-home .hv3-news-read {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--hv-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.hv3-news-read svg { width: 16px; height: 16px; }
.hv3-home .hv3-news-read:hover { background: var(--hv-surface-2); color: var(--hv-ink); }
.hv3-home .is-featured .hv3-news-read { color: rgba(255, 255, 255, 0.75); }
.hv3-home .is-featured .hv3-news-read:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.hv3-news-sk { min-height: 120px; border-radius: var(--hv-radius); background: var(--hv-surface); box-shadow: var(--hv-shadow); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.hv3-news-sk:first-child { grid-row: span 2; }
.hv3-news-sk span { height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--hv-surface-2) 0%, var(--hv-surface-3) 50%, var(--hv-surface-2) 100%); background-size: 200% 100%; animation: hv3Shimmer 1.4s linear infinite; }
.hv3-news-sk span:nth-child(1) { width: 40%; }
.hv3-news-sk span:nth-child(3) { width: 70%; }

@media (max-width: 900px) {
  .hv3-news-grid { grid-template-columns: 1fr; }
  .hv3-news-cta-label { display: none; }
  .hv3-news-card.is-featured { grid-row: auto; min-height: 280px; }
}

/* ===================================================================
   TODAS AS FORMAS DE CRIAR
   =================================================================== */
.hv3-tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.hv3-tool {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 16px 16px;
  border-radius: 20px;
  background: var(--hv-surface);
  color: var(--hv-ink) !important;
  text-decoration: none !important;
  box-shadow: var(--hv-shadow);
  overflow: hidden;
  animation: hv3Up 0.6s var(--hv-ease) both;
  animation-delay: calc(320ms + var(--k) * 40ms);
  transition: transform 0.35s var(--hv-ease), box-shadow 0.35s;
}
html.hv3[data-theme="dark"] .hv3-tool { border: 1px solid var(--hv-line); }
.hv3-tool::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(140% 120% at 0% 50%, var(--tone-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}
.hv3-tool:hover { transform: translateY(-3px); box-shadow: var(--hv-shadow-lift); }
.hv3-tool:hover::before { opacity: 1; }
.hv3-tool-ic {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--tone);
  color: #fff;
  box-shadow: 0 10px 18px -10px var(--tone);
  transition: transform 0.45s var(--hv-spring);
}
.hv3-tool-ic svg { width: 23px; height: 23px; }
.hv3-tool:hover .hv3-tool-ic { transform: rotate(-8deg) scale(1.08); }
.hv3-tool-text { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hv3-tool-text strong { display: flex; align-items: center; gap: 6px; font-size: 0.98rem; font-weight: 800; letter-spacing: -0.01em; }
.hv3-tool-text span { font-size: 0.82rem; font-weight: 500; line-height: 1.35; color: var(--hv-muted); }
.hv3-badge {
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--hv-surface-3);
  color: var(--hv-muted);
}
.hv3-tool-go {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--tone);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.3s var(--hv-ease);
}
.hv3-tool-go svg { width: 100%; height: 100%; }
.hv3-tool:hover .hv3-tool-go { opacity: 1; transform: none; }

.hv3-tone--teal  { --tone: #0e8a7e; --tone-soft: rgba(14, 138, 126, 0.1); }
.hv3-tone--ink   { --tone: #004343; --tone-soft: rgba(0, 67, 67, 0.09); }
.hv3-tone--coral { --tone: #e2574c; --tone-soft: rgba(226, 87, 76, 0.1); }
.hv3-tone--plum  { --tone: #7a4fc0; --tone-soft: rgba(122, 79, 192, 0.1); }
.hv3-tone--gold  { --tone: #e39a2d; --tone-soft: rgba(227, 154, 45, 0.12); }
.hv3-tone--leaf  { --tone: #2f9e5b; --tone-soft: rgba(47, 158, 91, 0.1); }
.hv3-tone--blue  { --tone: #2f7fd1; --tone-soft: rgba(47, 127, 209, 0.1); }
.hv3-tone--rose  { --tone: #d6457a; --tone-soft: rgba(214, 69, 122, 0.1); }
html.hv3[data-theme="dark"] .hv3-tone--ink { --tone: #2f8f8c; }

/* ===================================================================
   REFERÊNCIAS
   =================================================================== */
.hv3-trust { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0 0; text-align: center; }
.hv3-trust p { margin: 0; font-size: 0.88rem; color: var(--hv-muted); }
.hv3-trust strong { color: var(--hv-ink); font-weight: 700; }
.hv3-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.hv3-marquee-track { display: flex; gap: 14px; width: max-content; animation: hv3Marquee 38s linear infinite; }
.hv3-marquee:hover .hv3-marquee-track { animation-play-state: paused; }
@keyframes hv3Marquee { to { transform: translateX(calc(-50% - 7px)); } }
.hv3-logo {
  display: grid;
  place-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--hv-line);
}
.hv3-logo img { display: block; height: 22px; width: auto; max-width: 110px; object-fit: contain; transition: transform 0.3s var(--hv-spring); }
.hv3-logo:hover img { transform: scale(1.06); }

/* ===================================================================
   RESPONSIVO
   =================================================================== */

@media (max-width: 900px) {
  .hv3-hero { padding: 36px 32px 26px; }
  .hv3-sky-icon { right: 4%; transform: scale(1.7); }
  .hv3-hero-star { width: 190px; height: 190px; right: -44px; top: -48px; }
}
@media (max-width: 768px) {
  .hv3-home { gap: 40px; padding-bottom: 28px; }
  .hv3-hero { border-radius: 26px; padding: 26px 18px 16px; margin: 0 -4px; }
  .hv3-hero-star { width: 120px; height: 120px; top: -30px; right: -30px; }
  .hv3-sky-icon { top: 22px; right: 18px; margin-top: 0; transform: scale(1.15); transform-origin: top right; }
  .hv3-aurora--a { width: 300px; height: 300px; }
  .hv3-date { margin-bottom: 12px; font-size: 0.60rem; }
  .hv3-title { margin-bottom: 20px; }
  .hv3-title-hello { font-size: 0.98rem; margin-top: 40px; margin-bottom: 4px; }
  .hv3-title-ask { font-size: 1.6rem; max-width: 100vw; }
  .hv3-composer-row { flex-direction: column; align-items: stretch; padding: 4px; gap: 8px; }
  .hv3-formats { padding: 2px 2px 2px 6px; }
  .hv3-go { justify-content: center; width: 100%; height: 52px; }
  .hv3-home .hv3-field textarea, .hv3-ph { font-size: 0.96rem; }
  .hv3-hero-links { justify-content: center; margin: 10px 0 0; gap: 2px; }
  .hv3-home .hv3-link, .hv3-home #home-quick-create-btn.hv3-link { font-size: 0.86rem; }

  .hv3-card { padding: 18px 14px 16px; border-radius: 20px; }
  .hv3-sec-head { margin-bottom: 14px; }
  .hv3-h2 { font-size: 1.1rem; }
  .hv3-sub { font-size: 0.84rem; }
  .hv3-days { gap: 6px; }
  .hv3-home .hv3-day { min-height: 74px; border-radius: 14px; padding: 8px 2px; }
  .hv3-day-name { font-size: 0.62rem; letter-spacing: 0.04em; }
  .hv3-day-num { font-size: 1.2rem; }

  .hv3-status-row { grid-template-columns: 1fr; gap: 12px; }
  /* no celular, um aviso por vez (aprovação vem primeiro) */
  .hv3-status-row > .hv3-status + .hv3-status { display: none; }
  .hv3-status { flex-wrap: wrap; gap: 12px 14px; padding: 14px; }
  .hv3-status-text { flex-basis: calc(100% - 80px); }
  .hv3-home .hv3-status-cta { width: 100%; justify-content: center; }
  .hv3-status .hv3-thumbs { display: none; }
  .hv3-agent { width: 50px; height: 50px; }

  .hv3-rail-nav { display: none; }
  .hv3-rail { grid-auto-columns: 78%; gap: 12px; margin: -4px -16px -20px; padding: 4px 16px 24px; scroll-padding: 16px; }
  .hv3-idea { min-height: 190px; padding: 18px; }

  .hv3-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hv3-tool { flex-direction: column; align-items: flex-start; gap: 12px; min-height: 0; padding: 14px; }
  .hv3-tool-ic { width: 42px; height: 42px; border-radius: 14px; }
  .hv3-tool-text strong { font-size: 0.92rem; }
  .hv3-tool-go { display: none; }
}
@media (max-width: 380px) {
  .hv3-title-ask { font-size: 1.78rem; }
  .hv3-chip { padding: 0 11px 0 9px; font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hv3-home *, .hv3-home *::before, .hv3-home *::after { animation: none !important; transition: none !important; }
}

/* ===================================================================
   HEADER — vidro leve, selo com a estrela da marca
   =================================================================== */
/* header branco sólido: o Safari do iPhone (e o Chrome do Android) tinge a barra de status com a cor do topo;
   translúcido sobre o fundo cinza da página ficava cinza */
html.hv3[data-theme="light"] .app-header {
  background: #ffffff !important;
  box-shadow: 0 1px 0 rgba(15, 42, 38, 0.07), 0 8px 24px -18px rgba(15, 42, 38, 0.25) !important;
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}
html.hv3 .app-header .header-tag {
  gap: 7px;
  height: 28px;
  padding: 0 12px 0 10px;
  font-family: var(--hv-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
html.hv3 .app-header .header-tag::before {
  content: '';
  width: 11px;
  height: 11px;
  background: var(--hv-gold);
  flex-shrink: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.7 5.6 4.9 9.8 10.5 10.5-5.6.7-9.8 4.9-10.5 10.5C11.3 16.9 7.1 12.7 1.5 12 7.1 11.3 11.3 7.1 12 1.5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.7 5.6 4.9 9.8 10.5 10.5-5.6.7-9.8 4.9-10.5 10.5C11.3 16.9 7.1 12.7 1.5 12 7.1 11.3 11.3 7.1 12 1.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: hv3Glint 3.6s ease-in-out infinite;
}
html.hv3 .app-header .header-btn { border-radius: 14px; transition: background 0.2s, transform 0.25s var(--hv-spring); }
html.hv3 .app-header .header-btn:hover { transform: translateY(-1px); }
html.hv3 .app-header .header-btn:active { transform: scale(0.94); }

/* ===================================================================
   MENU LATERAL — botão "Criar conteúdo" com a cara da marca
   =================================================================== */
html.hv3 #sidebar-quick-create-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  border: 0 !important;
  border-radius: 16px !important;
  background: linear-gradient(140deg, #005150 0%, #003b3b 55%, #04201f 100%) !important;
  color: #fff !important;
  font-family: var(--hv-font);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 26px -14px rgba(0, 46, 46, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transition: transform 0.25s var(--hv-spring), box-shadow 0.25s;
}
html.hv3 #sidebar-quick-create-btn svg { margin-right: 0 !important; color: var(--hv-gold-2); width: 18px; height: 18px; animation: hv3Glint 3.6s ease-in-out infinite; }
html.hv3 #sidebar-quick-create-btn::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg);
  animation: hv3Shine 6s 3s ease-in-out infinite;
}
html.hv3 #sidebar-quick-create-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -14px rgba(0, 46, 46, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important; }
html.hv3[data-theme="dark"] #sidebar-quick-create-btn { background: linear-gradient(140deg, #0f5e5c 0%, #0a3d3c 60%, #072827 100%) !important; }

/* ===================================================================
   BARRA INFERIOR (mobile) — botão central com a estrela
   =================================================================== */
@media (max-width: 768px) {
  html.hv3 #quick-create-btn {
    background: radial-gradient(circle at 30% 25%, #0b6563 0%, #004343 55%, #022b2a 100%) !important;
    border: 4px solid #fff !important;
    color: var(--hv-gold-2) !important;
    box-shadow: 0 12px 24px -8px rgba(0, 46, 46, 0.7), 0 0 0 0 rgba(232, 163, 61, 0.45) !important;
    animation: hv3Fab 3.2s ease-in-out infinite;
    transition: transform 0.3s var(--hv-spring);
  }
  html.hv3[data-theme="dark"] #quick-create-btn { border-color: #101721 !important; }
  html.hv3 #quick-create-btn:active { transform: translateX(-50%) scale(0.92) !important; }
  html.hv3 #quick-create-btn svg { width: 26px; height: 26px; }
  html.hv3 #quick-create-btn.open { animation: none; color: #fff !important; }
}
@keyframes hv3Fab {
  0%, 100% { box-shadow: 0 12px 24px -8px rgba(0, 46, 46, 0.7), 0 0 0 0 rgba(232, 163, 61, 0.4); }
  50%      { box-shadow: 0 12px 24px -8px rgba(0, 46, 46, 0.7), 0 0 0 9px rgba(232, 163, 61, 0); }
}

/* ===================================================================
   "CRIAR CONTEÚDO" — folha que sobe (mobile) / diálogo (desktop)
   =================================================================== */
html.hv3 .quick-create-backdrop {
  background: rgba(4, 32, 31, 0.42) !important;
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
}
html.hv3 .quick-create-panel {
  background: var(--hv-surface) !important;
  opacity: 1 !important;
  border: 0 !important;
  font-family: var(--hv-font);
  color: var(--hv-ink);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 40px 80px -30px rgba(4, 32, 31, 0.55), 0 0 0 1px rgba(15, 42, 38, 0.06) !important;
}
html.hv3[data-theme="dark"] .quick-create-panel { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06) !important; }
html.hv3 .quick-create-content { padding: 30px 28px 28px; margin-bottom: 0; }
html.hv3 .quick-create-close {
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  background: var(--hv-surface-2) !important;
  color: var(--hv-ink) !important;
  transition: background 0.2s, transform 0.3s var(--hv-spring);
}
html.hv3 .quick-create-close:hover { background: var(--hv-surface-3) !important; transform: rotate(90deg); }
html.hv3 .quick-create-close svg { width: 20px; height: 20px; }

html.hv3 .qc-head { margin: 0 44px 22px 0; }
html.hv3 .qc-spark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(140deg, #005150, #04201f);
  color: var(--hv-gold-2);
  box-shadow: 0 10px 20px -10px rgba(0, 46, 46, 0.8);
}
html.hv3 .qc-spark svg { width: 22px; height: 22px; animation: hv3Glint 3.2s ease-in-out infinite; }
html.hv3 .quick-create-title {
  margin: 0 0 6px !important;
  font-family: var(--hv-serif);
  font-size: 1.9rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1;
  color: var(--hv-ink) !important;
}
html.hv3 .qc-sub { margin: 0; font-size: 0.95rem; color: var(--hv-muted) !important; font-weight: 500; line-height: 1.45; }
/* subtítulo do modal "Como quer criar esse conteúdo?" (home V2) */
html.hv3 .quick-create-title + p { color: var(--hv-muted) !important; }

html.hv3 .quick-create-section { margin-bottom: 22px; }
html.hv3 .quick-create-subtitle {
  margin: 0 0 10px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  color: var(--hv-muted) !important;
}
html.hv3 .quick-create-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

html.hv3 .quick-create-card {
  position: relative;
  display: grid !important;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: start;
  column-gap: 12px;
  row-gap: 2px;
  min-height: 0 !important;
  padding: 14px !important;
  border: 1px solid var(--hv-line) !important;
  border-radius: 18px !important;
  background: var(--hv-surface) !important;
  color: var(--hv-ink) !important;
  text-align: left !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: transform 0.3s var(--hv-ease), border-color 0.25s, box-shadow 0.3s, background 0.25s !important;
}
html.hv3 .quick-create-overlay.is-open .quick-create-card {
  animation: hv3Up 0.5s var(--hv-ease) both;
  animation-delay: calc(80ms + var(--k, 0) * 35ms);
}
html.hv3 .quick-create-card:hover {
  border-color: transparent !important;
  background: var(--hv-surface) !important;
  box-shadow: var(--hv-shadow-lift) !important;
  transform: translateY(-2px);
}
html.hv3 .quick-create-card:active { transform: scale(0.98); }
html.hv3 .quick-create-card-icon {
  grid-row: 1 / span 2;
  display: grid !important;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--tone, var(--hv-primary));
  color: #fff !important;
  box-shadow: 0 10px 18px -10px var(--tone, var(--hv-primary));
  transition: transform 0.45s var(--hv-spring);
}
html.hv3 .quick-create-card:hover .quick-create-card-icon { transform: rotate(-8deg) scale(1.08); color: #fff !important; }
html.hv3 .quick-create-card-icon svg { width: 22px; height: 22px; stroke-width: 1.8; }
html.hv3 .quick-create-card-label {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 0 !important;
  font-size: 0.96rem !important;
  font-weight: 800 !important;
  line-height: 1.2;
  color: var(--hv-ink) !important;
}
html.hv3 .quick-create-card-sublabel { display: none !important; }
html.hv3 .quick-create-card-highlight { font-size: 0.96rem !important; font-weight: 800 !important; color: var(--hv-ink) !important; }
html.hv3 .qc-desc {
  grid-column: 2;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--hv-muted);
}
/* cores por formato (mesmas da home) */
html.hv3 .qc-tone--teal  { --tone: #0e8a7e; }
html.hv3 .qc-tone--ink   { --tone: #004343; }
html.hv3 .qc-tone--coral { --tone: #e2574c; }
html.hv3 .qc-tone--plum  { --tone: #7a4fc0; }
html.hv3 .qc-tone--gold  { --tone: #e39a2d; }
html.hv3 .qc-tone--leaf  { --tone: #2f9e5b; }
html.hv3 .qc-tone--blue  { --tone: #2f7fd1; }
html.hv3 .qc-tone--rose  { --tone: #d6457a; }
html.hv3[data-theme="dark"] .qc-tone--ink { --tone: #2f8f8c; }
/* modal "Como quer criar esse conteúdo?" da V2 (sem classes de tom) */
html.hv3 .quick-create-card--carousel:not([class*="qc-tone"]) { --tone: #0e8a7e; }
html.hv3 .quick-create-card--post:not([class*="qc-tone"])     { --tone: #2f7fd1; }
html.hv3 .quick-create-card--video:not([class*="qc-tone"])    { --tone: #e2574c; }
html.hv3 .quick-create-card--story:not([class*="qc-tone"])    { --tone: #e39a2d; }

@media (min-width: 769px) {
  html.hv3 .quick-create-panel { max-width: 760px; border-radius: 28px !important; }
}
@media (max-width: 768px) {
  /* folha presa ao rodapé (acima da barra inferior), com alça */
  html.hv3 .quick-create-panel {
    position: absolute !important;
    top: auto !important;
    bottom: 0;
    height: auto !important;
    max-height: calc(100% - 56px) !important;
    border-radius: 28px 28px 0 0 !important;
  }
  html.hv3 .qc-handle {
    position: sticky;
    top: 0;
    display: block;
    width: 44px;
    height: 5px;
    margin: 10px auto 0;
    border-radius: 99px;
    background: var(--hv-surface-3);
    flex-shrink: 0;
  }
  html.hv3 .quick-create-content { padding: 14px 16px 52px; }
  html.hv3 .quick-create-close { top: 18px; right: 14px; }
  html.hv3 .qc-head { margin-bottom: 18px; }
  html.hv3 .qc-spark { width: 40px; height: 40px; margin-bottom: 12px; }
  html.hv3 .quick-create-title { font-size: 1.6rem !important; }
  html.hv3 .quick-create-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  html.hv3 .quick-create-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 4px;
    padding: 14px 12px !important;
  }
  html.hv3 .quick-create-card-icon { grid-row: auto; width: 40px; height: 40px; margin-bottom: 6px; }
  html.hv3 .qc-desc { grid-column: 1; }
}
html.hv3 .qc-handle { display: none; }
@media (max-width: 768px) { html.hv3 .qc-handle { display: block; } }

@media (prefers-reduced-motion: reduce) {
  html.hv3 .quick-create-card { animation: none !important; }
  html.hv3 #quick-create-btn, html.hv3 #sidebar-quick-create-btn::after, html.hv3 .app-header .header-tag::before { animation: none !important; }
}

/* ===================================================================
   MEUS CONTEÚDOS (#/calendar) — .cal3 vem do calendar-v3.js
   =================================================================== */
html.hv3 .cal3 { font-family: var(--hv-font); color: var(--hv-ink); }

/* ── cartão do calendário ── */
html.hv3 .cal3 .calendar-main.calendar-card {
  border: 0 !important;
  border-radius: 26px !important;
  background: var(--hv-surface) !important;
  box-shadow: var(--hv-shadow) !important;
  padding: 6px 8px 10px !important;
  animation: hv3Up 0.6s 0.08s var(--hv-ease) both;
}
html.hv3[data-theme="dark"] .cal3 .calendar-main.calendar-card { border: 1px solid var(--hv-line) !important; }
html.hv3 .cal3 .calendar-toolbar-label {
  font-family: var(--hv-font) !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: var(--hv-ink) !important;
}
html.hv3 .cal3 .calendar-toolbar-chevron {
  width: 34px; height: 34px;
  border-radius: 50% !important;
  background: var(--hv-surface-2) !important;
  color: var(--hv-ink) !important;
  transition: background 0.2s, transform 0.25s var(--hv-spring);
}
html.hv3 .cal3 .calendar-toolbar-chevron:hover { background: var(--hv-primary) !important; color: #fff !important; transform: scale(1.06); }
html.hv3 .cal3 .calendar-weekday-letter { color: var(--hv-muted) !important; font-size: 0.7rem !important; font-weight: 800 !important; letter-spacing: 0.08em; }

/* dias */
html.hv3 .cal3 .calendar-main .calendar-days--month { gap: 6px; }
html.hv3 .cal3 .calendar-main .calendar-days--month .calendar-day {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--hv-surface-2) !important;
  box-shadow: none !important;
  justify-content: center;
  transition: transform 0.3s var(--hv-spring), box-shadow 0.25s !important;
}
html.hv3 .cal3 .calendar-main .calendar-days--month .calendar-day .day-number {
  font-family: var(--hv-font);
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: var(--hv-ink) !important;
  position: relative;
  z-index: 1;
}
html.hv3 .cal3 .calendar-main .calendar-days--month .calendar-day.empty { background: transparent !important; }
html.hv3 .cal3 .calendar-main .calendar-days--month .calendar-day.day--past { background: transparent !important; }
html.hv3 .cal3 .calendar-main .calendar-days--month .calendar-day.day--past .day-number { color: var(--hv-muted) !important; opacity: 0.6; }
html.hv3 .cal3 .calendar-main .calendar-days--month .calendar-day:not(.empty):hover { transform: translateY(-2px) scale(1.04); box-shadow: var(--hv-shadow-lift) !important; z-index: 2; }

/* dia com conteúdo sem capa: anel de status */
html.hv3 .cal3 .calendar-main .calendar-days--month .calendar-day.day--has-content { background: #e3f4ea !important; box-shadow: inset 0 0 0 2px #7fcf9f !important; }
html.hv3 .cal3 .calendar-main .calendar-days--month .calendar-day.day--has-pending { background: #fdf0d6 !important; box-shadow: inset 0 0 0 2px #f0c06a !important; }
html.hv3[data-theme="dark"] .cal3 .calendar-main .calendar-days--month .calendar-day.day--has-content { background: rgba(34, 160, 107, 0.16) !important; }
html.hv3[data-theme="dark"] .cal3 .calendar-main .calendar-days--month .calendar-day.day--has-pending { background: rgba(232, 163, 61, 0.16) !important; }

/* dia com capa do conteúdo */
html.hv3 .cal3 .calendar-main .calendar-days--month .calendar-day.cal3-has-cover.cal3-has-cover {
  background: var(--cal3-cover) center / cover no-repeat, #0f2a26 !important;
}
html.hv3 .cal3 .calendar-main .calendar-days--month .calendar-day.cal3-has-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 32, 31, 0.15) 0%, rgba(4, 32, 31, 0.62) 100%);
  border-radius: inherit;
}
html.hv3 .cal3 .calendar-main .calendar-days--month .calendar-day.cal3-has-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2.5px var(--cal3-ring, #4cc38a);
  pointer-events: none;
}
html.hv3 .cal3 .calendar-main .calendar-days--month .calendar-day.cal3-has-cover.day--has-pending { --cal3-ring: #f2b950; }
html.hv3 .cal3 .calendar-main .calendar-days--month .calendar-day.cal3-has-cover .day-number,
html.hv3 .cal3 .calendar-main .calendar-days--month .calendar-day.cal3-has-cover.day--past .day-number {
  color: #fff !important;
  opacity: 1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
html.hv3 .cal3 .calendar-main .calendar-days--month .calendar-day.day--past.cal3-has-cover { filter: saturate(0.75); }

/* hoje */
html.hv3 .cal3 .calendar-main .calendar-days--month .calendar-day.today:not(.cal3-has-cover) {
  background: linear-gradient(150deg, #005150, #003333) !important;
  box-shadow: 0 10px 20px -10px rgba(0, 67, 67, 0.9) !important;
}
html.hv3 .cal3 .calendar-main .calendar-days--month .calendar-day.today .day-number { color: var(--hv-gold-2) !important; }
html.hv3 .cal3 .calendar-main .calendar-days--month .calendar-day.today.cal3-has-cover::after { box-shadow: inset 0 0 0 3px var(--hv-gold-2); }

/* contador e botões dentro do dia */
html.hv3 .cal3 .calendar-main .calendar-days--month .day-count-badge {
  position: absolute;
  right: 3px;
  top: 3px;
  z-index: 1;
  min-width: 14px;
  height: 14px;
  margin: 0;
  padding: 0 3px;
  border-radius: 7px;
  font-size: 0.56rem;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #0f2a26 !important;
  box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.3);
}
html.hv3 .cal3 .calendar-main .calendar-days--month .calendar-day-approve-btn { z-index: 2; }
html.hv3 .cal3 .calendar-day-add { z-index: 1; }
html.hv3 .cal3 .calendar-day:hover .calendar-day-add { background: rgba(0, 67, 67, 0.08) !important; }
html.hv3 .cal3 .calendar-day-add-icon { color: var(--hv-primary) !important; font-weight: 700; }

/* ── barra de filtros ── */
html.hv3 .cal3 .cal-agenda-toolbar {
  border: 0 !important;
  border-radius: 22px !important;
  background: var(--hv-surface) !important;
  box-shadow: var(--hv-shadow) !important;
  padding: 8px !important;
  margin-bottom: 15px !important;
  margin-top: 15px;
}
html.hv3[data-theme="dark"] .cal3 .cal-agenda-toolbar { border: 1px solid var(--hv-line) !important; }
html.hv3 .cal3 .posts-filters { gap: 4px !important; }
html.hv3 .cal3 .filter-btn {
  height: 40px;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  color: var(--hv-text) !important;
  font-family: var(--hv-font);
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  transition: background 0.2s, color 0.2s;
}
html.hv3 .cal3 .filter-btn:hover:not(.active) { background: var(--hv-surface-2) !important; color: var(--hv-ink) !important; }
html.hv3 .cal3 .filter-btn.active {
  background: var(--hv-primary) !important;
  color: #fff !important;
  box-shadow: 0 8px 16px -8px rgba(0, 67, 67, 0.8) !important;
}
html.hv3 .cal3 .cal-type-toggle,
html.hv3 .cal3 .cal-source-filter { border-radius: 14px !important; border-color: var(--hv-line) !important; font-family: var(--hv-font); }
html.hv3 .cal3 .cal-source-btn { border-radius: 10px !important; font-family: var(--hv-font); font-weight: 700 !important; }

/* ── cards de conteúdo ── */
html.hv3 .cal3 #cal-agenda-posts-grid { gap: 26px !important; }
html.hv3 .cal3 #cal-agenda-posts-grid .post-card {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 22px !important;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--hv-surface) !important;
  box-shadow: var(--hv-shadow) !important;
  animation: hv3Up 0.5s var(--hv-ease) both;
  transition: transform 0.35s var(--hv-ease), box-shadow 0.35s !important;
}
html.hv3[data-theme="dark"] .cal3 #cal-agenda-posts-grid .post-card { border: 1px solid var(--hv-line) !important; }
html.hv3 .cal3 #cal-agenda-posts-grid .post-card:nth-child(2) { animation-delay: 50ms; }
html.hv3 .cal3 #cal-agenda-posts-grid .post-card:nth-child(3) { animation-delay: 100ms; }
html.hv3 .cal3 #cal-agenda-posts-grid .post-card:nth-child(4) { animation-delay: 150ms; }
html.hv3 .cal3 #cal-agenda-posts-grid .post-card:nth-child(n+5) { animation-delay: 200ms; }
html.hv3 .cal3 #cal-agenda-posts-grid .post-card:hover { transform: translateY(-4px); box-shadow: var(--hv-shadow-lift) !important; }
html.hv3 .cal3 #cal-agenda-posts-grid .post-card-thumbnail {
  height: auto !important;
  aspect-ratio: 4 / 5;
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: hidden;
  background: var(--hv-surface-2) !important;
}
/* vídeos, stories e teleprompter na mesma altura dos posts (o JS põe aspect-ratio 9/16 inline) */
html.hv3 .cal3 #cal-agenda-posts-grid .post-card .post-card-thumbnail { aspect-ratio: 4 / 5 !important; height: auto !important; max-height: none !important; }
html.hv3 .cal3 #cal-agenda-posts-grid .post-card .post-card-thumbnail > img,
html.hv3 .cal3 #cal-agenda-posts-grid .post-card .post-card-thumbnail > video { object-position: center center !important; }
html.hv3 .cal3 #cal-agenda-posts-grid .post-card .post-card-thumb-placeholder { max-width: none !important; width: 100% !important; height: 100% !important; margin: 0 !important; }
html.hv3 .cal3 #cal-agenda-posts-grid .post-card-thumbnail > img,
html.hv3 .cal3 #cal-agenda-posts-grid .post-card-thumbnail > video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.6s var(--hv-ease);
}
html.hv3 .cal3 #cal-agenda-posts-grid .post-card:hover .post-card-thumbnail > img { transform: scale(1.04); }
html.hv3 .cal3 #cal-agenda-posts-grid .post-status-badge:not([class*=" status-"]) {
  top: auto !important;
  bottom: 10px !important;
  left: auto !important;
  right: 10px !important;
  height: auto !important;
  padding: 4px 9px !important;
  border-radius: 999px !important;
  font-family: var(--hv-font);
  font-size: 0.66rem !important;
  font-weight: 800 !important;
}
html.hv3 .cal3 #cal-agenda-posts-grid .post-status-badge[class*=" status-"] {
  top: 12px !important;
  right: auto !important;
  left: 12px !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  font-family: var(--hv-font);
  font-size: 0.66rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
html.hv3 .cal3 #cal-agenda-posts-grid .post-card-content { padding: 14px 16px 6px !important; }
html.hv3 .cal3 #cal-agenda-posts-grid .pcm-type-row { align-items: center !important; }
html.hv3 .cal3 #cal-agenda-posts-grid .pcm-badge { border-radius: 999px !important; font-family: var(--hv-font); font-weight: 800 !important; }
html.hv3 .cal3 #cal-agenda-posts-grid .pcm-date { font-family: var(--hv-font); font-weight: 600; color: var(--hv-muted) !important; }
html.hv3 .cal3 #cal-agenda-posts-grid .post-card-actions {
  display: grid !important;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
  padding: 8px 12px 14px !important;
  border: 0 !important;
}
html.hv3 .cal3 #cal-agenda-posts-grid .post-card-actions .btn {
  height: 44px;
  margin: 0 !important;
  border-radius: 14px !important;
  font-family: var(--hv-font);
  font-weight: 800 !important;
  font-size: 0.9rem !important;
}
html.hv3 .cal3 #cal-agenda-posts-grid .post-card-actions [data-action="review"] {
  background: var(--hv-surface-2) !important;
  border: 0 !important;
  color: var(--hv-ink) !important;
}
html.hv3 .cal3 #cal-agenda-posts-grid .post-card-actions [data-action="approve"] {
  background: linear-gradient(140deg, #005150, #003b3b) !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: 0 10px 18px -10px rgba(0, 67, 67, 0.9);
}
html.hv3 .cal3 .calendar-agenda-empty {
  padding: 48px 16px !important;
  border-radius: 22px;
  background: var(--hv-surface);
  color: var(--hv-muted) !important;
  font-family: var(--hv-font);
  font-weight: 600;
  text-align: center;
  box-shadow: var(--hv-shadow);
}
html.hv3 .cal3 .calendar-agenda-empty::before {
  content: '';
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  background: var(--hv-gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.7 5.6 4.9 9.8 10.5 10.5-5.6.7-9.8 4.9-10.5 10.5C11.3 16.9 7.1 12.7 1.5 12 7.1 11.3 11.3 7.1 12 1.5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.7 5.6 4.9 9.8 10.5 10.5-5.6.7-9.8 4.9-10.5 10.5C11.3 16.9 7.1 12.7 1.5 12 7.1 11.3 11.3 7.1 12 1.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* banners do plano na coluna da esquerda */
html.hv3 .cal3 .calendar-agenda-banners .calendar-banner { border-radius: 22px !important; }

@media (max-width: 768px) {
  html.hv3 .cal3 .calendar-main.calendar-card { border-radius: 22px !important; }
  html.hv3 .cal3 .calendar-main .calendar-days--month { gap: 4px; }
  html.hv3 .cal3 .calendar-main .calendar-days--month .calendar-day { border-radius: 11px !important; }
  html.hv3 .cal3 .calendar-main .calendar-days--month .calendar-day .day-number { font-size: 0.82rem !important; }
  html.hv3 .cal3 .calendar-main .calendar-days--month .day-count-badge { display: none; }
  html.hv3 .cal3 .cal-agenda-toolbar { border-radius: 20px !important; }
  html.hv3 .cal3 #cal-agenda-posts-grid .post-card { border-radius: 20px !important; }
}

/* ===================================================================
   MENU LATERAL — ícones em azulejo, item ativo com a estrela
   =================================================================== */
html.hv3 .sidebar-nav .nav-item {
  position: relative;
  gap: 10px;
  font-family: var(--hv-font) !important;
  font-weight: 600 !important;
  font-size: 0.87rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding: 5px 10px 5px 6px !important;
  transition: background 0.2s, color 0.2s, transform 0.25s var(--hv-ease) !important;
  padding: 5px 8px 4px 16px !important;
}
html.hv3 .sidebar-nav .nav-item:not(.nav-sub-item) > svg:first-child {
  box-sizing: content-box;
  width: 18px;
  height: 18px;
  padding: 7px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--hv-surface-2);
  color: var(--hv-primary) !important;
  stroke-width: 1.9;
  transition: background 0.25s, color 0.25s, transform 0.35s var(--hv-spring);
}
html.hv3 .sidebar-nav .nav-item:hover:not(.active) { transform: translateX(2px); }
html.hv3 .sidebar-nav .nav-item:hover:not(.active) > svg:first-child { background: #fff; transform: rotate(-6deg) scale(1.06); box-shadow: 0 6px 12px -8px rgba(0, 67, 67, 0.6); }
html.hv3[data-theme="dark"] .sidebar-nav .nav-item:not(.nav-sub-item) > svg:first-child { background: rgba(255, 255, 255, 0.06); color: #8fd3cf !important; }
html.hv3[data-theme="dark"] .sidebar-nav .nav-item:hover:not(.active) > svg:first-child { background: rgba(255, 255, 255, 0.12); }

/* ativo: pílula verde profunda, ícone dourado e uma estrela piscando à direita */
html.hv3 .sidebar-nav .nav-item.active {
  background: linear-gradient(140deg, #005150 0%, #003838 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 22px -12px rgba(0, 46, 46, 0.9) !important;
}
html.hv3 .sidebar-nav .nav-item.active > svg:first-child { background: rgba(255, 255, 255, 0.12) !important; color: var(--hv-gold-2) !important; }
html.hv3 .sidebar-nav a.nav-item.active::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  background: var(--hv-gold-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.7 5.6 4.9 9.8 10.5 10.5-5.6.7-9.8 4.9-10.5 10.5C11.3 16.9 7.1 12.7 1.5 12 7.1 11.3 11.3 7.1 12 1.5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.7 5.6 4.9 9.8 10.5 10.5-5.6.7-9.8 4.9-10.5 10.5C11.3 16.9 7.1 12.7 1.5 12 7.1 11.3 11.3 7.1 12 1.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: hv3Glint 3s ease-in-out infinite;
}
/* com selo (BETA/contador) a estrela não aparece para não brigar */
html.hv3 .sidebar-nav a.nav-item.active:has(.badge:not([style*="none"]), .badge-new)::after { display: none; }

/* submenu: linha-guia à esquerda */
html.hv3 .sidebar-nav .nav-sub-group { position: relative; }
html.hv3 .sidebar-nav .nav-sub-group::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: var(--hv-line);
}
html.hv3 .sidebar-nav .nav-item.nav-sub-item { padding: 7px 10px 7px 44px !important; font-size: 0.88rem !important; }
html.hv3 .sidebar-nav .nav-item.nav-sub-item > svg { display: none; }
html.hv3 .sidebar-nav .nav-item.nav-sub-item.active { box-shadow: none !important; background: var(--hv-surface-2) !important; color: var(--hv-primary) !important; font-weight: 800 !important; }
html.hv3 .sidebar-nav .nav-item.nav-sub-item.active::after { display: none; }
html.hv3 .sidebar-nav .nav-item.nav-sub-item.active::before {
  content: '';
  display: block !important;
  position: absolute;
  left: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--hv-gold);
  box-shadow: 0 0 0 3px var(--hv-surface);
}
html.hv3 .sidebar-nav .nav-sub-arrow { transition: transform 0.3s var(--hv-ease); }

/* rótulos dos grupos */
html.hv3 .sidebar-nav-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hv-font) !important;
  font-size: 0.66rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  color: var(--hv-muted) !important;
}
html.hv3 .sidebar-nav-group-label::after { content: ''; flex: 1; height: 1px; background: var(--hv-line); }
html.hv3 .nav-item .badge-new { background: #fdf1dc !important; color: var(--hv-gold-ink) !important; font-family: var(--hv-font); font-weight: 800 !important; letter-spacing: 0.04em; }
html.hv3[data-theme="dark"] .nav-item .badge-new { background: rgba(232, 163, 61, 0.16) !important; }

/* ===================================================================
   BARRA INFERIOR — indicador em pílula atrás do ícone ativo
   =================================================================== */
@media (max-width: 768px) {
  html.hv3 .bottom-nav-item { font-family: var(--hv-font); font-weight: 600; }
  html.hv3 .bottom-nav-item span { white-space: nowrap; font-size: 0.66rem; letter-spacing: -0.01em; }
  html.hv3 .bottom-nav-item[href] svg {
    box-sizing: content-box;
    padding: 4px 12px;
    border-radius: 999px;
    transition: background 0.3s var(--hv-ease), color 0.25s, transform 0.35s var(--hv-spring);
  }
  html.hv3 .bottom-nav-item.active[href] svg { background: #dcecea; color: var(--hv-primary); transform: translateY(-1px); }
  html.hv3[data-theme="dark"] .bottom-nav-item.active[href] svg { background: rgba(47, 143, 140, 0.25); color: #9be0dc; }
  html.hv3 .bottom-nav-item.active[href] span { font-weight: 800; color: var(--hv-primary); }
  html.hv3 .bottom-nav-item[href]:active svg { transform: scale(0.9); }

  /* pílula única que desliza entre os itens (home-v3.js · setupBottomNavPill) */
  html.hv3 .hv3-bn-pill {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    border-radius: 999px;
    background: #dcecea;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.55s var(--hv-spring), width 0.35s var(--hv-ease), height 0.35s var(--hv-ease), opacity 0.2s;
  }
  html.hv3[data-theme="dark"] .hv3-bn-pill { background: rgba(47, 143, 140, 0.25); }
  html.hv3 .hv3-bn-pill.is-on { opacity: 1; }
  html.hv3 .hv3-bn-pill.no-anim { transition: opacity 0.2s; }
  /* estica um pouco no caminho e assenta (efeito de gota) */
  html.hv3 .hv3-bn-pill.is-go { animation: hv3BnStretch 0.55s var(--hv-ease); }
  @keyframes hv3BnStretch {
    0% { border-radius: 999px; filter: brightness(1); }
    35% { border-radius: 40% 60% 60% 40% / 50%; filter: brightness(0.97); }
    100% { border-radius: 999px; filter: brightness(1); }
  }
  html.hv3 .bottom-nav.hv3-has-pill .bottom-nav-item { position: relative; z-index: 1; }
  html.hv3 .bottom-nav.hv3-has-pill .bottom-nav-item.active[href] svg { background: transparent; }
  html.hv3 .bottom-nav-item.hv3-bn-pop svg { animation: hv3BnPop 0.55s var(--hv-spring); }
  html.hv3 .bottom-nav-item.hv3-bn-pop span { animation: hv3BnLabel 0.4s var(--hv-ease); }
  @keyframes hv3BnPop {
    0% { transform: scale(0.82) translateY(2px); }
    55% { transform: scale(1.14) translateY(-3px); }
    100% { transform: translateY(-1px); }
  }
  @keyframes hv3BnLabel {
    from { opacity: 0.3; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
  }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  html.hv3 .hv3-bn-pill { transition: opacity 0.2s; }
  html.hv3 .hv3-bn-pill.is-go,
  html.hv3 .bottom-nav-item.hv3-bn-pop svg,
  html.hv3 .bottom-nav-item.hv3-bn-pop span { animation: none; }
}

/* ===================================================================
   CRIAR REEL / TELEPROMPTER — .cr3 vem do create-v3.js
   =================================================================== */
html.hv3 .cr3 { font-family: var(--hv-font); color: var(--hv-ink); }

/* ── hero com prévia ao vivo ── */
.cr3-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 170px;
  margin: 0 0 24px;
  padding: 0 40px;
  border-radius: 20px;
  color: #fff;
  animation: hv3Up 0.6s var(--hv-ease) both;
}
.cr3-hero::before {
  content: '';
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: conic-gradient(from 0deg at 70% 50%, var(--cr3-a), var(--cr3-b), var(--cr3-c), var(--cr3-a));
  filter: blur(50px);
  opacity: 0.55;
  animation: cr3Spin 18s linear infinite;
}
@keyframes cr3Spin { to { transform: rotate(360deg); } }
.cr3-hero--reels {
  --cr3-a: #e2574c; --cr3-b: #f6a35f; --cr3-c: #7a1f3d;
  background: linear-gradient(140deg, #3b0d1f 0%, #6e1d33 55%, #2a0a17 100%);
  box-shadow: 0 30px 60px -34px rgba(110, 29, 51, 0.9);
}
.cr3-hero--tp {
  --cr3-a: #7a4fc0; --cr3-b: #3d6fd6; --cr3-c: #2a1450;
  background: linear-gradient(140deg, #1a0f33 0%, #33205e 55%, #120a24 100%);
  box-shadow: 0 30px 60px -34px rgba(51, 32, 94, 0.9);
}
.cr3-hero-text { position: relative; z-index: 1; }
.cr3-title {
  margin: 0;
  font-family: var(--hv-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff !important;
}
.cr3-title em { font-style: italic; color: var(--hv-gold-2); }

/* Reels: celular tocando */
.cr3-phone-stage { position: relative; width: 210px; height: 190px; flex-shrink: 0; }
.cr3-phone {
  position: absolute;
  right: 34px;
  top: -6px;
  width: 116px;
  height: 206px;
  padding: 6px;
  border-radius: 24px;
  background: #0d0a10;
  box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: rotate(6deg);
  animation: cr3Float 6s ease-in-out infinite;
}
.cr3-phone--ghost { right: 112px; top: 18px; transform: rotate(-9deg) scale(0.86); opacity: 0.35; animation-delay: -3s; }
.cr3-phone--ghost::after { content: ''; position: absolute; inset: 6px; border-radius: 18px; background: linear-gradient(160deg, #f6a35f, #e2574c); }
@keyframes cr3Float { 50% { translate: 0 -6px; } }
.cr3-phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 26px 16px 10px;
  background: linear-gradient(200deg, #f6a35f, #e2574c 40%, #7a1f3d 75%, #2a0a17);
  background-size: 200% 200%;
  animation: cr3Video 8s ease-in-out infinite alternate;
}
@keyframes cr3Video { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.cr3-phone-screen::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55)); }
.cr3-phone-tpl {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 20px);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.56rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
}
.cr3-phone-tpl svg { width: 9px; height: 9px; color: var(--hv-gold-2); flex-shrink: 0; }
.cr3-phone-tpl b { overflow: hidden; text-overflow: ellipsis; }
.cr3-phone-text {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  margin: 0 0 8px;
  font-family: var(--hv-serif);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  animation: cr3TextIn 0.4s var(--hv-ease);
}
.cr3-phone-text.is-empty { opacity: 0.7; font-style: italic; }
@keyframes cr3TextIn { from { opacity: 0; transform: translateY(4px); } }
.cr3-phone-side { z-index: 1; position: absolute; right: 7px; bottom: 30px; display: flex; flex-direction: column; gap: 8px; }
.cr3-phone-side i { width: 13px; height: 13px; color: #fff; opacity: 0.9; }
.cr3-phone-side i:first-child { animation: cr3Like 2.4s ease-in-out infinite; color: #ff6b81; }
@keyframes cr3Like { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.35); } }
.cr3-phone-side svg { width: 100%; height: 100%; display: block; }
.cr3-phone-bar { z-index: 1; position: relative; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.cr3-phone-bar i { position: absolute; inset: 0; background: #fff; transform-origin: left; animation: cr3Progress 7s linear infinite; }
@keyframes cr3Progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Teleprompter: tela rolando o tema */
.cr3-prompter {
  position: relative;
  flex-shrink: 0;
  width: 320px;
  height: 150px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(5, 3, 12, 0.72);
  box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: perspective(700px) rotateY(-10deg);
}
.cr3-prompter-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; }
.cr3-rec { display: inline-flex; align-items: center; gap: 5px; color: #ff6b6b; }
.cr3-rec i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; animation: hv3Blink 1.2s steps(1) infinite; }
.cr3-time { color: rgba(255, 255, 255, 0.7); font-variant-numeric: tabular-nums; }
.cr3-prompter-window {
  height: 108px;
  margin-top: 6px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.cr3-prompter-roll { animation: cr3Roll 14s linear infinite; }
.cr3-prompter-roll p {
  margin: 0 0 14px;
  font-family: var(--hv-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: #fff;
}
.cr3-prompter-roll p.is-empty { color: rgba(255, 255, 255, 0.7); font-style: italic; }
@keyframes cr3Roll { from { transform: translateY(40px); } to { transform: translateY(-66.66%); } }
.cr3-prompter-guide { position: absolute; left: 8px; right: 8px; top: 50%; height: 34px; margin-top: -10px; border-radius: 10px; border: 1px solid rgba(246, 195, 107, 0.45); pointer-events: none; }

/* ── etapas e formulário ── */
html.hv3 .cr3 .cp-step-card,
html.hv3 .cr3--split .create-post-columns,
html.hv3 .cr3--split .create-post-suggestions {
  border: 0 !important;
  border-radius: 26px !important;
  background: var(--hv-surface) !important;
  box-shadow: var(--hv-shadow) !important;
}
html.hv3[data-theme="dark"] .cr3 .cp-step-card,
html.hv3[data-theme="dark"] .cr3--split .create-post-columns,
html.hv3[data-theme="dark"] .cr3--split .create-post-suggestions { border: 1px solid var(--hv-line) !important; }
html.hv3 .cr3 .cp-step-card { padding: 22px 24px !important; margin-bottom: 18px !important; animation: hv3Up 0.6s var(--hv-ease) both; }
html.hv3 .cr3 .cp-step-card:nth-of-type(2) { animation-delay: 60ms; }
html.hv3 .cr3 .cp-step-card:nth-of-type(3) { animation-delay: 120ms; }
html.hv3 .cr3 .cp-step-hdr { border: 0 !important; padding-bottom: 0 !important; margin-bottom: 16px !important; gap: 12px !important; }
html.hv3 .cr3 .cp-step-card--collapsed .cp-step-hdr { margin-bottom: 0 !important; }
html.hv3 .cr3 .cp-step-num {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border: 0 !important;
  background: var(--hv-primary) !important;
  color: var(--hv-gold-2) !important;
  font-family: var(--hv-font);
  font-size: 0.8rem !important;
  font-weight: 800 !important;
}
html.hv3 .cr3--reels .cp-step-num    { background: #e2574c !important; color: #fff !important; }
html.hv3 .cr3--post .cp-step-num     { background: #2f7fd1 !important; color: #fff !important; }
html.hv3 .cr3--carousel .cp-step-num { background: #0e8a7e !important; color: #fff !important; }
html.hv3 .cr3--stories .cp-step-num  { background: #e39a2d !important; color: #fff !important; }
html.hv3 .cr3--tp .cp-step-num       { background: #7a4fc0 !important; color: #fff !important; }
html.hv3 .cr3 .cp-step-title { font-family: var(--hv-font); font-size: 1.1rem !important; font-weight: 800 !important; letter-spacing: -0.015em; color: var(--hv-ink) !important; margin: 0 !important; }
/* menos texto */
html.hv3 .cr3 .cp-step-sub,
html.hv3 .cr3--split .create-post-header,
html.hv3 .cr3--split .suggestions-subtitle,
html.hv3 .cr3 .cp-sugg-badge-novo { display: none !important; }
html.hv3 .cr3 .cp-step-card--collapsed { opacity: 1 !important; }

/* campo do tema como o da home */
html.hv3 .cr3 #rn-theme,
html.hv3 .cr3 #tpv2-theme,
html.hv3 .cr3 #post-theme,
html.hv3 .cr3 #carousel-theme {
  min-height: 72px !important;
  padding: 16px 18px !important;
  border: 2px solid transparent !important;
  border-radius: 18px !important;
  background: var(--hv-surface-2) !important;
  color: var(--hv-ink) !important;
  font-family: var(--hv-font);
  font-size: 1.08rem !important;
  font-weight: 600;
  line-height: 1.45;
  resize: none;
  caret-color: var(--hv-gold);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
html.hv3 .cr3 #rn-theme:focus,
html.hv3 .cr3 #tpv2-theme:focus,
html.hv3 .cr3 #post-theme:focus,
html.hv3 .cr3 #carousel-theme:focus { background: var(--hv-surface) !important; border-color: var(--hv-gold-2) !important; box-shadow: 0 0 0 4px rgba(246, 195, 107, 0.25) !important; }
html.hv3 .cr3 .form-label,
html.hv3 .cr3 .cp-sec-label,
html.hv3 .cr3 .cp-theme-sugg-hdr { font-family: var(--hv-font); color: var(--hv-muted) !important; font-weight: 800 !important; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.72rem !important; }

/* sugestões em pílula */
html.hv3 #page-content .cr3 .cp-theme-sugg-chip {
  border: 0 !important;
  border-radius: 999px !important;
  background: #fdf1dc !important;
  color: #5a3a0a !important;
  font-family: var(--hv-font);
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  padding: 9px 16px !important;
  transition: transform 0.25s var(--hv-spring), background 0.2s;
}
html.hv3 #page-content .cr3 .cp-theme-sugg-chip:hover { transform: translateY(-1px); background: #fbe3b8 !important; }
html.hv3[data-theme="dark"] #page-content .cr3 .cp-theme-sugg-chip { background: rgba(232, 163, 61, 0.14) !important; color: var(--hv-gold-2) !important; }

/* escolhas (template, origem, duração, categoria, capa): pílulas; selecionada em verde */
html.hv3 #page-content .cr3 .rn-tpl-card,
html.hv3 #page-content .cr3 .is-item,
html.hv3 #page-content .cr3 .ct-item,
html.hv3 #page-content .cr3 .vd-item {
  border: 2px solid transparent !important;
  border-radius: 16px !important;
  background: var(--hv-surface-2) !important;
  color: var(--hv-ink) !important;
  font-family: var(--hv-font);
  font-weight: 700 !important;
  box-shadow: none !important;
  transition: transform 0.25s var(--hv-spring), background 0.2s, border-color 0.2s, color 0.2s !important;
}
html.hv3 #page-content .cr3 .rn-tpl-card:hover,
html.hv3 #page-content .cr3 .is-item:hover,
html.hv3 #page-content .cr3 .ct-item:hover,
html.hv3 #page-content .cr3 .vd-item:hover { transform: translateY(-2px); background: var(--hv-surface-3) !important; }
html.hv3 #page-content .cr3 .rn-tpl-card.active,
html.hv3 #page-content .cr3 .is-item.active,
html.hv3 #page-content .cr3 .ct-item.active,
html.hv3 #page-content .cr3 .vd-item.active {
  background: var(--hv-primary) !important;
  border-color: var(--hv-primary) !important;
  color: #fff !important;
  box-shadow: 0 10px 20px -12px rgba(0, 67, 67, 0.9) !important;
}
html.hv3 #page-content .cr3 .rn-tpl-card.active .rn-tpl-name { color: #fff !important; }
html.hv3 #page-content .cr3 .rn-tpl-card.active::after { color: var(--hv-gold-2) !important; }
html.hv3 #page-content .cr3 .is-item .rn-src-icon { background: var(--hv-surface) !important; color: var(--hv-primary); }
html.hv3 #page-content .cr3 .is-item.active .rn-src-icon { background: rgba(255, 255, 255, 0.14) !important; color: var(--hv-gold-2); }
html.hv3 #page-content .cr3 .vd-icon { filter: grayscale(1); opacity: 0.6; }
html.hv3 #page-content .cr3 .vd-item.active .vd-icon { filter: none; opacity: 1; }
html.hv3 #page-content .cr3 .cp-mode-toggle { border: 0 !important; border-radius: 16px !important; background: var(--hv-surface-2) !important; padding: 4px !important; }
html.hv3 #page-content .cr3 .cp-mode-btn { border: 0 !important; border-radius: 12px !important; font-family: var(--hv-font); font-weight: 700 !important; color: var(--hv-text) !important; background: transparent !important; }
html.hv3 #page-content .cr3 .cp-mode-btn.active { background: var(--hv-surface) !important; color: var(--hv-primary) !important; box-shadow: 0 2px 8px -2px rgba(15, 42, 38, 0.25) !important; }
html.hv3 #page-content .cr3 .cp-customize-card { border: 0 !important; border-radius: 18px !important; background: var(--hv-surface-2) !important; }

/* botão final dourado (no lugar do verde neon) */
html.hv3 .cr3 #rn-create-btn,
html.hv3 .cr3 #tpv2-generate,
html.hv3 .cr3 .create-content-btn {
  position: relative;
  overflow: hidden;
  height: 58px;
  border: 0 !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #f6c36b 0%, #e8a33d 100%) !important;
  background-size: auto !important;
  color: #2a1b04 !important;
  font-family: var(--hv-font);
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 30px -14px rgba(186, 120, 20, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  animation: none !important;
  transition: transform 0.25s var(--hv-spring) !important;
}
html.hv3 .cr3 #rn-create-btn::after,
html.hv3 .cr3 #tpv2-generate::after,
html.hv3 .cr3 .create-content-btn::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; width: 30%; left: -40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  animation: hv3Shine 5s 1.5s ease-in-out infinite;
}
html.hv3 .cr3 #rn-create-btn:hover,
html.hv3 .cr3 #tpv2-generate:hover,
html.hv3 .cr3 .create-content-btn:hover { transform: translateY(-2px) !important; filter: none !important; }
html.hv3 .cr3 #rn-create-btn svg,
html.hv3 .cr3 #tpv2-generate svg,
html.hv3 .cr3 .create-content-btn svg { color: #2a1b04; }

html.hv3 .cr3--split .create-post-columns { padding: 25px 15px !important; animation: hv3Up 0.6s var(--hv-ease) both; }
html.hv3 .cr3--split .create-post-main > .cr3-hero { margin-bottom: 0; flex-shrink: 0; }
html.hv3 .cr3--split .create-post-main { margin-top: 0 !important; padding-top: 0 !important; gap: 18px !important; }
html.hv3 .cr3--split .create-post-form { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
/* teleprompter: sugestões de tendência mais leves */
html.hv3 .cr3--split .create-post-suggestions { margin-top: 0 !important; padding: 22px 24px !important; }
html.hv3 .cr3--split .suggestions-header h3 { font-family: var(--hv-font); font-weight: 800 !important; color: var(--hv-ink) !important; font-size: 1.1rem !important; }
html.hv3 .cr3--split .suggestion-card:not(.skeleton) {
  border: 0 !important;
  border-radius: 18px !important;
  background: var(--hv-surface-2) !important;
  box-shadow: none !important;
  transition: transform 0.25s var(--hv-spring), background 0.2s !important;
}
html.hv3 .cr3--split .suggestion-card:not(.skeleton):hover { transform: translateY(-2px); background: var(--hv-surface-3) !important; }

@media (max-width: 768px) {
  .cr3-hero { height: 110px; padding: 0 18px; gap: 12px; border-radius: 14px; margin-bottom: 16px; }
  .cr3-title { font-size: 1.75rem; }
  .cr3-phone--ghost { display: none; }
  .cr3-prompter { transform: none; }
  .cr3-hero.cr3-hero--reels     { --cr3-zoom: 0.46; }
  .cr3-hero.cr3-hero--tp        { --cr3-zoom: 0.5; }
  .cr3-hero.cr3-hero--post      { --cr3-zoom: 0.46; }
  .cr3-hero.cr3-hero--carousel  { --cr3-zoom: 0.52; }
  .cr3-hero.cr3-hero--stories   { --cr3-zoom: 0.46; }
  .cr3-hero.cr3-hero--bio       { --cr3-zoom: 0.44; }
  .cr3-hero.cr3-hero--photos    { --cr3-zoom: 0.5; }
  .cr3-hero.cr3-hero--provideos { --cr3-zoom: 0.54; }
  .cr3-hero.cr3-hero--news      { --cr3-zoom: 0.46; }
  html.hv3 .cr3 .cp-step-card { padding: 18px 16px !important; border-radius: 22px !important; }
}
@media (max-width: 400px) {
  .cr3-hero { padding: 0 14px; gap: 8px; }
  .cr3-title { font-size: 1.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cr3-hero::before, .cr3-phone, .cr3-phone-screen, .cr3-phone-bar i, .cr3-prompter-roll, .cr3-phone-side i { animation: none !important; }
}

/* ── cores do hero por tela (mesmas da grade "Todas as formas de criar") ── */
.cr3-hero--post      { --cr3-a: #2f7fd1; --cr3-b: #7cb8ff; --cr3-c: #10325e; background: linear-gradient(140deg, #0b2348 0%, #16437f 55%, #081a36 100%); box-shadow: 0 30px 60px -34px rgba(22, 67, 127, 0.9); }
.cr3-hero--carousel  { --cr3-a: #0e8a7e; --cr3-b: #5fd3c4; --cr3-c: #063d38; background: linear-gradient(140deg, #052e2b 0%, #0b5e56 55%, #042421 100%); box-shadow: 0 30px 60px -34px rgba(11, 94, 86, 0.9); }
.cr3-hero--stories   { --cr3-a: #e39a2d; --cr3-b: #ffd18a; --cr3-c: #6b3a07; background: linear-gradient(140deg, #3d2205 0%, #7a4610 55%, #2c1803 100%); box-shadow: 0 30px 60px -34px rgba(122, 70, 16, 0.9); }
.cr3-hero--bio       { --cr3-a: #2f9e5b; --cr3-b: #8fe0ae; --cr3-c: #0d3d22; background: linear-gradient(140deg, #082b18 0%, #13573a 55%, #06200f 100%); box-shadow: 0 30px 60px -34px rgba(19, 87, 58, 0.9); }
.cr3-hero--photos,
.cr3-hero--provideos { --cr3-a: #d6457a; --cr3-b: #ff9cc0; --cr3-c: #5e1430; background: linear-gradient(140deg, #3a0b1f 0%, #7a1d45 55%, #2a0716 100%); box-shadow: 0 30px 60px -34px rgba(122, 29, 69, 0.9); }
.cr3-hero--news      { --cr3-a: #004343; --cr3-b: #e8a33d; --cr3-c: #0e8a7e; background: linear-gradient(140deg, #005150 0%, #003b3b 55%, #04201f 100%); box-shadow: 0 30px 60px -34px rgba(0, 46, 46, 0.9); }
.cr3-art { position: relative; flex-shrink: 0; display: grid; place-items: center; height: 100%; }
/* cada arte tem seu tamanho natural; o zoom faz caber na altura do hero (afeta o layout, ao contrário de transform) */
.cr3-art > * { zoom: var(--cr3-zoom, 1); }
.cr3-hero--reels     { --cr3-zoom: 0.68; }
.cr3-hero--tp        { --cr3-zoom: 0.92; }
.cr3-hero--post      { --cr3-zoom: 0.68; }
.cr3-hero--carousel  { --cr3-zoom: 0.8; }
.cr3-hero--stories   { --cr3-zoom: 0.68; }
.cr3-hero--bio       { --cr3-zoom: 0.72; }
.cr3-hero--photos    { --cr3-zoom: 0.8; }
.cr3-hero--provideos { --cr3-zoom: 0.84; }
.cr3-hero--news      { --cr3-zoom: 0.72; }

.cr3-hero .cr3-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  margin-top: 14px;
  padding: 0 20px 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f6c36b, #e8a33d);
  color: #2a1b04;
  font-family: var(--hv-font);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px -12px rgba(186, 120, 20, 0.9);
  transition: transform 0.25s var(--hv-spring);
}
.cr3-hero .cr3-hero-btn svg { width: 16px; height: 16px; }
.cr3-hero .cr3-hero-btn:hover { transform: translateY(-2px); }

/* Imagem única: post do feed */
.cr3-feed {
  width: 132px;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.6);
  transform: rotate(5deg);
  animation: cr3Float 6s ease-in-out infinite;
}
.cr3-feed-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.cr3-feed-head i { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #f6c36b, #d6457a); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e8a33d; }
.cr3-feed-head span { width: 54px; height: 6px; border-radius: 4px; background: #e3e9e7; }
.cr3-feed-img {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 5;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(160deg, #7cb8ff, #2f7fd1 50%, #10325e);
  background-size: 200% 200%;
  animation: cr3Video 8s ease-in-out infinite alternate;
}
.cr3-feed-text { margin: 0; font-family: var(--hv-serif); font-size: 0.74rem; font-weight: 600; line-height: 1.15; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.cr3-feed-text.is-empty, .cr3-slide-text.is-empty, .cr3-story-text.is-empty { opacity: 0.75; font-style: italic; }
.cr3-feed-foot { display: flex; align-items: center; gap: 7px; margin-top: 7px; color: #0f2a26; }
.cr3-feed-foot i { width: 14px; height: 14px; }
.cr3-feed-foot svg { width: 100%; height: 100%; display: block; }
.cr3-feed-foot span { flex: 1; height: 5px; border-radius: 4px; background: #e3e9e7; }
.cr3-like { color: #ff4d6d; animation: cr3Like 2.4s ease-in-out infinite; }

/* Carrossel: slides em leque */
.cr3-slides { position: relative; width: 210px; height: 180px; }
.cr3-slide { position: absolute; top: 0; left: 40px; width: 130px; height: 162px; border-radius: 14px; box-shadow: 0 20px 36px -16px rgba(0, 0, 0, 0.6); }
.cr3-slide--3 { background: #0b5e56; transform: translateX(44px) rotate(12deg); opacity: 0.55; animation: cr3Fan3 5s ease-in-out infinite; }
.cr3-slide--2 { background: #5fd3c4; transform: translateX(24px) rotate(6deg); opacity: 0.8; animation: cr3Fan2 5s ease-in-out infinite; }
.cr3-slide--1 { display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; background: linear-gradient(160deg, #f2fbf9, #c9efe8); color: #063d38; animation: cr3Fan1 5s ease-in-out infinite; }
@keyframes cr3Fan1 { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(-7deg) translateX(-6px); } }
@keyframes cr3Fan2 { 0%, 100% { transform: translateX(24px) rotate(6deg); } 50% { transform: translateX(32px) rotate(9deg); } }
@keyframes cr3Fan3 { 0%, 100% { transform: translateX(44px) rotate(12deg); } 50% { transform: translateX(56px) rotate(16deg); } }
.cr3-slide-count { position: absolute; top: 10px; right: 10px; padding: 2px 7px; border-radius: 999px; background: #063d38; color: #fff; font-size: 0.56rem; font-weight: 800; }
.cr3-slide-text { margin: 0 0 8px; font-family: var(--hv-serif); font-size: 0.82rem; font-weight: 600; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.cr3-slide-arrow { align-self: flex-end; font-weight: 800; color: #0e8a7e; animation: cr3Nudge 1.6s ease-in-out infinite; }
@keyframes cr3Nudge { 50% { transform: translateX(4px); } }
.cr3-dots { position: absolute; left: 50%; bottom: -2px; display: flex; gap: 5px; transform: translateX(-30%); }
.cr3-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.cr3-dots i:first-child { width: 16px; border-radius: 4px; background: #fff; }

/* Stories */
.cr3-phone--story { right: 40px; transform: rotate(-5deg); }
.cr3-story-screen { justify-content: center !important; padding: 26px 12px 16px !important; background: linear-gradient(200deg, #ffd18a, #e39a2d 45%, #7a4610) !important; background-size: 200% 200% !important; }
.cr3-story-bars { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 3px; z-index: 1; }
.cr3-story-bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, 0.4); overflow: hidden; position: relative; }
.cr3-story-bars i:first-child::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: cr3Progress 5s linear infinite; }
.cr3-story-user { position: absolute; top: 16px; left: 9px; display: flex; align-items: center; gap: 4px; z-index: 1; }
.cr3-story-user b { width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.cr3-story-user em { width: 34px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.7); }
.cr3-story-text { position: relative; z-index: 1; margin: 0; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.92); color: #3d2205; font-family: var(--hv-serif); font-size: 0.7rem; font-weight: 600; line-height: 1.15; text-align: center; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.cr3-story-reply { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.7); z-index: 1; }

/* Biografia: perfil do Instagram sendo escrito */
.cr3-profile {
  width: 230px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  color: #0f2a26;
  box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.6);
  transform: rotate(3deg);
  animation: cr3Float 6s ease-in-out infinite;
}
.cr3-profile-top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.cr3-profile-avatar { width: 54px; height: 54px; padding: 3px; border-radius: 50%; background: conic-gradient(#f6c36b, #d6457a, #7a4fc0, #f6c36b); animation: cr3Spin 6s linear infinite; }
.cr3-profile-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: #fff; animation: cr3Spin 6s linear infinite reverse; }
.cr3-profile-stats { flex: 1; display: flex; justify-content: space-between; }
.cr3-profile-stats i { width: 30px; height: 18px; border-radius: 6px; background: #eef2f1; }
.cr3-profile-name { display: block; margin-bottom: 6px; font-size: 0.82rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr3-profile-lines { display: flex; flex-direction: column; gap: 5px; }
.cr3-profile-lines i { height: 6px; border-radius: 4px; background: #d7e3e0; transform-origin: left; animation: cr3Write 4.5s ease-in-out infinite; }
.cr3-profile-lines i:nth-child(1) { width: 92%; }
.cr3-profile-lines i:nth-child(2) { width: 78%; animation-delay: 0.5s; }
.cr3-profile-lines i:nth-child(3) { width: 56%; animation-delay: 1s; }
@keyframes cr3Write { 0% { transform: scaleX(0); } 30%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.cr3-caret-bio { display: none; }
.cr3-profile-btn { display: block; height: 22px; margin-top: 12px; border-radius: 8px; background: #2f9e5b; }

/* Fotos profissionais: polaroides com flash */
.cr3-book { position: relative; width: 230px; height: 180px; }
.cr3-polaroid { position: absolute; top: 10px; width: 112px; height: 136px; padding: 7px 7px 24px; border-radius: 6px; background: #fff; box-shadow: 0 18px 32px -14px rgba(0, 0, 0, 0.6); }
.cr3-polaroid i { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 100%; border-radius: 3px; overflow: hidden; color: rgba(255, 255, 255, 0.85); }
.cr3-polaroid i svg { width: 64%; height: auto; display: block; }
.cr3-polaroid--a { left: 0; transform: rotate(-12deg); } .cr3-polaroid--a i { background: linear-gradient(160deg, #ffc7da, #d6457a); }
.cr3-polaroid--b { left: 58px; transform: rotate(4deg); z-index: 1; } .cr3-polaroid--b i { background: linear-gradient(160deg, #a7c6ff, #2f5fb8); }
.cr3-polaroid--c { left: 112px; transform: rotate(14deg); } .cr3-polaroid--c i { background: linear-gradient(160deg, #ffe0a6, #c87a14); }
.cr3-polaroid--b { animation: cr3Lift 4s ease-in-out infinite; }
@keyframes cr3Lift { 50% { transform: rotate(2deg) translateY(-8px); } }
.cr3-flash { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 60%); opacity: 0; animation: cr3Flash 4s ease-out infinite; pointer-events: none; z-index: 2; }
@keyframes cr3Flash { 0%, 62%, 100% { opacity: 0; } 66% { opacity: 0.9; } 74% { opacity: 0; } }

/* Vídeos profissionais: quadro de filme com câmera em movimento */
.cr3-film { position: relative; width: 240px; }
.cr3-film-frame { position: relative; overflow: hidden; height: 150px; border-radius: 16px; background: linear-gradient(120deg, #ff9cc0, #d6457a 45%, #5e1430); background-size: 220% 100%; animation: cr3Dolly 9s ease-in-out infinite alternate; box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.6); }
@keyframes cr3Dolly { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.cr3-film-person { position: absolute; bottom: -6px; left: 50%; width: 92px; margin-left: -46px; color: rgba(255, 255, 255, 0.8); animation: cr3Zoom 9s ease-in-out infinite alternate; }
.cr3-film-person svg { width: 100%; height: auto; display: block; }
@keyframes cr3Zoom { from { transform: scale(1); } to { transform: scale(1.12) translateX(8px); } }
.cr3-film-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #7a1d45; animation: hv3Fab 2.4s ease-in-out infinite; }
.cr3-film-play svg { width: 20px; height: 20px; margin-left: 2px; }
.cr3-film-bar { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.cr3-film-bar i { position: absolute; inset: 0; background: #fff; transform-origin: left; animation: cr3Progress 9s linear infinite; }
.cr3-film-holes { display: block; height: 10px; margin: 8px 6px 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 10px, transparent 10px 20px); border-radius: 3px; }

/* Notícias: portais em órbita */
.cr3-orbit { position: relative; width: 250px; height: 200px; }
.cr3-orbit::before { content: ''; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; background: var(--hv-gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.7 5.6 4.9 9.8 10.5 10.5-5.6.7-9.8 4.9-10.5 10.5C11.3 16.9 7.1 12.7 1.5 12 7.1 11.3 11.3 7.1 12 1.5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.7 5.6 4.9 9.8 10.5 10.5-5.6.7-9.8 4.9-10.5 10.5C11.3 16.9 7.1 12.7 1.5 12 7.1 11.3 11.3 7.1 12 1.5z'/%3E%3C/svg%3E") center / contain no-repeat; animation: hv3Glint 3s ease-in-out infinite; }
.cr3-orbit-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 36px;
  margin: -18px 0 0 -32px;
  padding: 6px 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.6);
  animation: cr3Orbit 24s linear infinite;
  animation-delay: calc(var(--k) * -4s);
}
.cr3-orbit-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
@keyframes cr3Orbit {
  from { transform: rotate(0deg) translateX(82px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(82px) rotate(-360deg); }
}

/* ── páginas Book (bio, fotos, vídeos) ── */
html.hv3 #page-content.cr3--book .cr3-hero { margin-bottom: 22px; }
/* Biografia */
html.hv3 .cr3--bio .card {
  border: 0 !important;
  border-radius: 26px !important;
  background: var(--hv-surface) !important;
  box-shadow: var(--hv-shadow) !important;
  animation: hv3Up 0.6s var(--hv-ease) both;
}
html.hv3[data-theme="dark"] .cr3--bio .card { border: 1px solid var(--hv-line) !important; }
html.hv3 .cr3--bio .card-header { border: 0 !important; padding-bottom: 0 !important; }
html.hv3 .cr3--bio .card-header > p { display: none; }
html.hv3 .cr3--bio .card-title { font-family: var(--hv-font); font-weight: 800 !important; letter-spacing: -0.015em; color: var(--hv-ink) !important; }
html.hv3 .cr3--bio .empty-state { color: var(--hv-muted); font-family: var(--hv-font); }
html.hv3 .cr3--bio .bio-suggestions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
html.hv3 .cr3--bio .bio-suggestion-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 0 !important;
  border-radius: 22px !important;
  background: var(--hv-surface-2) !important;
  transition: transform 0.3s var(--hv-ease), box-shadow 0.3s;
}
html.hv3 .cr3--bio .bio-suggestion-card:hover { transform: translateY(-3px); box-shadow: var(--hv-shadow-lift); }
html.hv3 .cr3--bio .bio-type-badge { padding: 4px 11px; border-radius: 999px; background: #e3f4ea !important; color: #1d7a45 !important; font-family: var(--hv-font); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
html.hv3 .cr3--bio .instagram-bio-mockup { padding: 14px; border-radius: 16px; background: var(--hv-surface) !important; border: 0 !important; }
html.hv3 .cr3--bio .instagram-avatar-large img { border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e8a33d; }
html.hv3 .cr3--bio .instagram-fullname { font-family: var(--hv-font); font-weight: 800; color: var(--hv-ink) !important; }
html.hv3 .cr3--bio .instagram-bio-text { font-family: var(--hv-font); color: var(--hv-text) !important; line-height: 1.5; }
html.hv3 .cr3--bio [data-copy-bio] {
  width: 100%;
  height: 44px;
  border: 0 !important;
  border-radius: 14px !important;
  background: #2f9e5b !important;
  color: #fff !important;
  font-family: var(--hv-font);
  font-weight: 800 !important;
  justify-content: center;
}
html.hv3 .cr3--bio [data-copy-bio]:hover { filter: brightness(1.08); }

/* Fotos profissionais (markup da lib com estilos inline) */
html.hv3 .cr3--photos #prophotos-inline-mount {
  padding: 26px !important;
  border-radius: 26px !important;
  background: var(--hv-surface) !important;
  box-shadow: var(--hv-shadow);
  animation: hv3Up 0.6s var(--hv-ease) both;
}
html.hv3 .cr3--photos #pp-uploader {
  border: 2px dashed #f0b3c8 !important;
  border-radius: 22px !important;
  background: #fff5f8 !important;
  transition: background 0.2s, border-color 0.2s;
}
html.hv3 .cr3--photos #pp-uploader:hover { background: #ffeaf1 !important; border-color: #d6457a !important; }
html.hv3[data-theme="dark"] .cr3--photos #pp-uploader { background: rgba(214, 69, 122, 0.08) !important; border-color: rgba(214, 69, 122, 0.45) !important; }
html.hv3 .cr3--photos #pp-uploader svg { color: #d6457a; }
html.hv3 .cr3--photos .pp-controls button { border-radius: 14px !important; background: var(--hv-surface-2) !important; color: var(--hv-primary) !important; border: 0 !important; }
html.hv3 .cr3--photos #pp-generate {
  border: 0 !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #f6c36b 0%, #e8a33d 100%) !important;
  color: #2a1b04 !important;
  font-family: var(--hv-font);
  font-weight: 800 !important;
  font-size: 1.02rem !important;
  height: 58px !important;
  box-shadow: 0 16px 30px -14px rgba(186, 120, 20, 0.85) !important;
}
html.hv3 .cr3--photos #pp-tab-album .card { border: 0 !important; border-radius: 22px !important; background: var(--hv-surface-2) !important; }
html.hv3 .cr3--photos #pp-album-grid img { border-radius: 16px; }

/* Vídeos profissionais */
html.hv3 .cr3--provideos .pv-create-card {
  border: 0 !important;
  border-radius: 26px !important;
  background: var(--hv-surface) !important;
  box-shadow: var(--hv-shadow) !important;
  animation: hv3Up 0.6s var(--hv-ease) both;
}
html.hv3 .cr3--provideos .pv-layout { max-width: none !important; }
html.hv3 .cr3--provideos .pv-create-card .card-header { display: none; }
html.hv3 .cr3--provideos .pv-image-drop {
  border: 2px dashed #f0b3c8 !important;
  border-radius: 22px !important;
  background: #fff5f8 !important;
  color: #d6457a !important;
  transition: background 0.2s, border-color 0.2s, transform 0.25s var(--hv-spring);
}
html.hv3 .cr3--provideos .pv-image-drop:hover { background: #ffeaf1 !important; border-color: #d6457a !important; transform: translateY(-2px); }
html.hv3[data-theme="dark"] .cr3--provideos .pv-image-drop { background: rgba(214, 69, 122, 0.08) !important; border-color: rgba(214, 69, 122, 0.45) !important; }
html.hv3 .cr3--provideos .pv-pick-btn { border-radius: 14px !important; border: 0 !important; background: var(--hv-surface-2) !important; color: var(--hv-ink) !important; font-family: var(--hv-font); font-weight: 700 !important; }
html.hv3 .cr3--provideos #pv-preset-select { height: 52px; border: 2px solid transparent !important; border-radius: 16px !important; background-color: var(--hv-surface-2) !important; color: var(--hv-ink) !important; font-family: var(--hv-font); font-weight: 700; }
html.hv3 .cr3--provideos .pv-generate-btn {
  height: 56px;
  border: 0 !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #f6c36b 0%, #e8a33d 100%) !important;
  color: #2a1b04 !important;
  font-family: var(--hv-font);
  font-weight: 800 !important;
  box-shadow: 0 16px 30px -14px rgba(186, 120, 20, 0.85) !important;
}
html.hv3 .cr3--provideos .pv-generate-btn:disabled { opacity: 0.45; box-shadow: none !important; }
html.hv3 .cr3--provideos .form-label { font-family: var(--hv-font); color: var(--hv-muted) !important; font-weight: 800 !important; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.72rem !important; }
html.hv3 .cr3--provideos .pv-ou { color: var(--hv-muted); font-weight: 700; }

/* ── Notícias para você ── */
html.hv3 .cr3--news .news-fm-header { display: none; }
html.hv3 .cr3--news .news-fm-section-title,
html.hv3 .cr3--news .news-fm-section-label { font-family: var(--hv-font); font-weight: 800 !important; letter-spacing: 0.12em; color: var(--hv-muted) !important; }
html.hv3 .cr3--news .news-fm-card {
  border: 0 !important;
  border-radius: 22px !important;
  background: var(--hv-surface) !important;
  box-shadow: var(--hv-shadow) !important;
  animation: hv3Up 0.5s var(--hv-ease) both;
  transition: transform 0.35s var(--hv-ease), box-shadow 0.35s !important;
}
html.hv3[data-theme="dark"] .cr3--news .news-fm-card { border: 1px solid var(--hv-line) !important; }
html.hv3 .cr3--news .news-fm-card:hover { transform: translateY(-3px); box-shadow: var(--hv-shadow-lift) !important; }
html.hv3 .cr3--news .news-fm-card-title { font-family: var(--hv-font); font-weight: 800 !important; letter-spacing: -0.015em; color: var(--hv-ink) !important; }
html.hv3 .cr3--news .news-fm-card-source { font-family: var(--hv-font); font-weight: 800; color: var(--hv-ink) !important; letter-spacing: 0.02em; }
html.hv3 .cr3--news .news-fm-card-source-logo { width: 28px !important; height: 28px !important; padding: 4px; border-radius: 9px; background: #fff; border: 1px solid var(--hv-line); object-fit: contain; }
html.hv3 .cr3--news .news-fm-card-snippet { color: var(--hv-muted) !important; }
/* destaque: verde da marca, como na home */
html.hv3 .cr3--news .news-fm-card--featured {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(232, 163, 61, 0.22) 0%, rgba(232, 163, 61, 0) 50%),
    linear-gradient(150deg, #00504f 0%, #003535 55%, #04201f 100%) !important;
  box-shadow: 0 30px 60px -32px rgba(0, 46, 46, 0.85) !important;
}
html.hv3 .cr3--news .news-fm-card--featured .news-fm-card-title,
html.hv3 .cr3--news .news-fm-card--featured .news-fm-card-source { color: #fff !important; }
html.hv3 .cr3--news .news-fm-card--featured .news-fm-card-title--featured { font-family: var(--hv-serif); font-weight: 600 !important; font-size: clamp(1.4rem, 2.2vw, 1.9rem) !important; line-height: 1.15; }
html.hv3 .cr3--news .news-fm-card--featured .news-fm-card-snippet,
html.hv3 .cr3--news .news-fm-card--featured .news-fm-card-foot-date { color: rgba(255, 255, 255, 0.72) !important; }
html.hv3 .cr3--news .news-fm-card--featured .news-fm-read-icon { color: rgba(255, 255, 255, 0.8) !important; background: rgba(255, 255, 255, 0.1) !important; border: 0 !important; }
html.hv3 .cr3--news .news-fm-card--featured { display: flex !important; flex-direction: column; align-items: flex-start; }
html.hv3 .cr3--news .news-fm-card--featured .news-fm-featured-body { width: 100%; }
html.hv3 .cr3--news .news-fm-featured-badge {
  position: static !important;
  display: inline-flex !important;
  align-items: center;
  margin: 22px 0 -6px 22px !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.08em;
  transform: none !important;
}
html.hv3 .cr3--news .news-fm-featured-badge { background: linear-gradient(135deg, #f6c36b, #e8a33d) !important; color: #2a1b04 !important; font-family: var(--hv-font); font-weight: 800 !important; }
/* botões na cor do formato */
html.hv3 .cr3--news .btn-news-post,
html.hv3 .cr3--news .btn-news-carousel {
  height: 36px;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-family: var(--hv-font);
  font-weight: 800 !important;
  transition: filter 0.2s, transform 0.25s var(--hv-spring) !important;
}
html.hv3 .cr3--news .btn-news-post { background: #2f7fd1 !important; }
html.hv3 .cr3--news .btn-news-carousel { background: #0e8a7e !important; }
html.hv3 .cr3--news .btn-news-post:hover,
html.hv3 .cr3--news .btn-news-carousel:hover { filter: brightness(1.08); transform: translateY(-1px); }

@media (max-width: 768px) {
  .cr3-dots { display: none; }
  .cr3-hero .cr3-hero-btn { height: 34px; margin-top: 8px; padding: 0 14px 0 12px; font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cr3-feed, .cr3-slide, .cr3-profile, .cr3-profile-avatar, .cr3-profile-avatar img, .cr3-profile-lines i, .cr3-polaroid, .cr3-flash,
  .cr3-film-frame, .cr3-film-person, .cr3-film-play, .cr3-film-bar i, .cr3-orbit-logo, .cr3-story-bars i::after { animation: none !important; }
}

/* ===================================================================
   MENU LATERAL RETRÁTIL (desktop) — html.hv3-nav-collapsed vem do home-v3.js
   =================================================================== */
.hv3-nav-toggle { display: none; }
.hv3-nav-tip { display: none; }

@media (min-width: 1025px) {
  html.hv3 .sidebar { transition: width 0.32s var(--hv-ease) !important; }
  html.hv3 .main-content { transition: margin-left 0.32s var(--hv-ease), width 0.32s var(--hv-ease); }

  /* botão de menu ao lado da logo: três linhas que viram "recolhido" (linhas curtas) */
  html.hv3 .hv3-nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    margin-right: 0px;
    padding: 0 12px;
    border: 0;
    border-radius: 14px;
    background: #e6f0f0 !important;
    cursor: pointer;
    transition: background 0.2s, transform 0.25s var(--hv-spring);
  }
  html.hv3 .hv3-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #004343;
    transition: width 0.3s var(--hv-ease), transform 0.3s var(--hv-ease);
  }
  html.hv3 .hv3-nav-toggle span:nth-child(2) { width: 13px; }
  html.hv3 .hv3-nav-toggle:hover { background: #d2e4e4 !important; transform: translateY(-1px); }
  html.hv3 .hv3-nav-toggle:hover span:nth-child(2) { width: 18px; }
  html.hv3 .hv3-nav-toggle:active { transform: scale(0.94); }
  html.hv3[data-theme="dark"] .hv3-nav-toggle { background: rgba(255, 255, 255, 0.08) !important; }
  html.hv3[data-theme="dark"] .hv3-nav-toggle:hover { background: rgba(255, 255, 255, 0.16) !important; }
  html.hv3[data-theme="dark"] .hv3-nav-toggle span { background: #e8eef4; }
  html.hv3.hv3-nav-collapsed .hv3-nav-toggle span:nth-child(1),
  html.hv3.hv3-nav-collapsed .hv3-nav-toggle span:nth-child(3) { width: 12px; }
  html.hv3.hv3-nav-collapsed .hv3-nav-toggle span:nth-child(2) { width: 18px; }

  /* recolhido */
  html.hv3.hv3-nav-collapsed[data-theme] .sidebar { width: 76px !important; overflow-x: hidden !important; }
  html.hv3.hv3-nav-collapsed[data-theme] .main-content { margin-left: 100px !important; width: calc(100% - 100px) !important; }
  html.hv3.hv3-nav-collapsed[data-theme="dark"] .main-content { margin-left: 76px !important; width: calc(100% - 76px) !important; }

  html.hv3.hv3-nav-collapsed .sidebar-nav { padding: 12px 8px 8px !important; overflow-x: hidden; }
  html.hv3.hv3-nav-collapsed .sidebar-nav-group-label { font-size: 0 !important; padding: 12px 10px 8px !important; }
  html.hv3.hv3-nav-collapsed .sidebar-nav-group:first-child .sidebar-nav-group-label { display: none; }

  html.hv3.hv3-nav-collapsed .sidebar-nav .nav-item {
    justify-content: center;
    gap: 0;
    padding: 5px 0 !important;
    transform: none !important;
  }
  html.hv3.hv3-nav-collapsed .sidebar-nav .nav-item > *:not(svg:first-child):not(.badge) { display: none !important; }
  html.hv3.hv3-nav-collapsed .sidebar-nav .nav-item::after { display: none !important; }
  html.hv3.hv3-nav-collapsed .sidebar-nav .nav-sub-group { display: none !important; }
  /* ativo: só o ícone em destaque */
  html.hv3.hv3-nav-collapsed .sidebar-nav .nav-item.active { width: 46px; margin-left: auto !important; margin-right: auto !important; border-radius: 14px !important; }
  /* contador vira um ponto sobre o ícone */
  html.hv3.hv3-nav-collapsed .sidebar-nav .nav-item .badge:not([style*="none"]) {
    position: absolute;
    top: 3px;
    right: 9px;
    min-width: 0 !important;
    width: 10px;
    height: 10px;
    padding: 0 !important;
    font-size: 0 !important;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--hv-surface) !important;
  }

  /* "Criar conteúdo" só com a estrela */
  html.hv3.hv3-nav-collapsed .sidebar-footer { padding: 12px 10px 18px !important; }
  html.hv3.hv3-nav-collapsed #sidebar-quick-create-btn { width: 52px; height: 52px; margin: 0 auto; padding: 0 !important; border-radius: 16px !important; }
  html.hv3.hv3-nav-collapsed #sidebar-quick-create-btn span { display: none; }
  html.hv3.hv3-nav-collapsed #sidebar-quick-create-btn svg { width: 22px; height: 22px; }

  /* balão com o nome do item */
  html.hv3.hv3-nav-collapsed .hv3-nav-tip {
    display: block;
    position: fixed;
    z-index: 2000;
    padding: 7px 12px;
    border-radius: 10px;
    background: #0f2a26;
    color: #fff;
    font-family: var(--hv-font);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 10px 24px -10px rgba(4, 32, 31, 0.6);
    opacity: 0;
    transform: translate(-6px, -50%);
    transition: opacity 0.15s, transform 0.2s var(--hv-ease);
  }
  html.hv3.hv3-nav-collapsed .hv3-nav-tip::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    background: inherit;
    transform: rotate(45deg);
    border-radius: 2px;
  }
  html.hv3.hv3-nav-collapsed .hv3-nav-tip.is-on { opacity: 1; transform: translate(0, -50%); }
}

/* ===================================================================
   REVISAR REEL — volume da música e velocidade do vídeo
   =================================================================== */
html.hv3 .modal-revisar-reel .rn-av-mute,
html.hv3 .modal-revisar-reel .rn-av-speed {
  border: 0 !important;
  background: var(--hv-surface-2) !important;
  color: var(--hv-ink) !important;
  font-family: var(--hv-font);
  transition: background 0.2s, color 0.2s, transform 0.2s var(--hv-spring);
}
html.hv3 .modal-revisar-reel .rn-av-mute:hover,
html.hv3 .modal-revisar-reel .rn-av-speed:hover:not(.is-on) { background: var(--hv-surface-3) !important; }
html.hv3 .modal-revisar-reel .rn-av-speed.is-on { background: var(--hv-primary) !important; color: #fff !important; box-shadow: 0 6px 14px -8px rgba(0, 67, 67, 0.8); }
html.hv3 .modal-revisar-reel .rn-av-range { accent-color: var(--hv-primary); }
html.hv3 .modal-revisar-reel .rn-av-val { color: var(--hv-ink); font-family: var(--hv-font); }

/* ===================================================================
   HERO DA HOME — telas de 1024px a 1440px: tudo 20% menor
   (altura via padding/espaçamentos, fontes, campo, chips, botões e arte)
   =================================================================== */
@media (min-width: 1024px) and (max-width: 1440px) {
  .hv3-hero { padding: 35px 38px 24px; border-radius: 22px; }
  .hv3-hero-inner { max-width: 528px; }
  .hv3-date { margin-bottom: 11px; font-size: 0.6rem; }
  .hv3-title { margin-bottom: 19px; }
  .hv3-title-hello { margin-bottom: 8px; font-size: 0.86rem; }
  .hv3-title-ask { font-size: clamp(1.6rem, 3.04vw, 2.44rem); }

  .hv3-composer { border-radius: 18px; padding: 5px; }
  .hv3-home .hv3-field textarea { min-height: 48px; padding: 14px 14px 6px; font-size: 0.9rem; }
  .hv3-ph { left: 14px; right: 14px; top: 14px; font-size: 0.9rem; }
  .hv3-composer-row { gap: 8px; padding: 5px 5px 5px 10px; }
  .hv3-formats { gap: 5px; }
  .hv3-home .hv3-chip { height: 29px; gap: 5px; padding: 0 10px 0 8px; font-size: 0.79rem; }
  .hv3-chip-ic { width: 13px; height: 13px; }
  .hv3-home .hv3-go { height: 38px; gap: 6px; padding: 0 16px 0 18px; border-radius: 13px; font-size: 0.8rem; }
  .hv3-go-ic { width: 14px; height: 14px; }

  .hv3-hero-links { margin-top: 13px; gap: 5px 11px; }
  .hv3-home .hv3-link,
  .hv3-home #home-quick-create-btn.hv3-link { height: 30px; gap: 6px; padding: 0 10px; font-size: 0.85rem; }
  .hv3-link-ic { width: 14px; height: 14px; }

  .hv3-hero-star { width: 200px; height: 200px; top: -42px; right: -37px; }
  .hv3-sky-icon { transform: scale(1.84); }
}
html.hv3 .modal-revisar-reel .rn-title-toggle { border: 0; background: var(--hv-surface-2); font-family: var(--hv-font); color: var(--hv-ink); }
html.hv3 .modal-revisar-reel .rn-title-toggle .rn-switch[aria-checked="true"] { background: var(--hv-primary) !important; }

/* ===================================================================
   MENU DO USUÁRIO — abre com animação (o JS só alterna display; a animação roda a cada abertura)
   =================================================================== */
html.hv3 .user-menu-dropdown {
  transform-origin: top right;
  border-radius: 18px !important;
  overflow: hidden;
  animation: hv3MenuIn 0.28s var(--hv-spring) both;
}
@keyframes hv3MenuIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.92); }
  to   { opacity: 1; transform: none; }
}
html.hv3 .user-menu-dropdown .umd-header,
html.hv3 .user-menu-dropdown .umd-item,
html.hv3 .user-menu-dropdown #logout-btn { animation: hv3MenuItem 0.32s var(--hv-ease) both; }
html.hv3 .user-menu-dropdown .umd-header { animation-delay: 0.04s; }
html.hv3 .user-menu-dropdown .umd-item:nth-child(1) { animation-delay: 0.07s; }
html.hv3 .user-menu-dropdown .umd-item:nth-child(2) { animation-delay: 0.1s; }
html.hv3 .user-menu-dropdown .umd-item:nth-child(3) { animation-delay: 0.13s; }
html.hv3 .user-menu-dropdown .umd-item:nth-child(4) { animation-delay: 0.16s; }
html.hv3 .user-menu-dropdown .umd-item:nth-child(5) { animation-delay: 0.19s; }
html.hv3 .user-menu-dropdown .umd-item:nth-child(6) { animation-delay: 0.22s; }
html.hv3 .user-menu-dropdown #logout-btn { animation-delay: 0.25s; }
@keyframes hv3MenuItem {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: none; }
}
html.hv3 .user-menu-dropdown .umd-item { transition: background 0.2s, transform 0.2s var(--hv-ease) !important; }
html.hv3 .user-menu-dropdown .umd-item:hover { transform: translateX(3px); }
html.hv3 .user-menu-dropdown .umd-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--hv-gold); }
@media (prefers-reduced-motion: reduce) {
  html.hv3 .user-menu-dropdown, html.hv3 .user-menu-dropdown * { animation: none !important; }
}

/* ===================================================================
   TERMÔMETRO DE CONSTÂNCIA (home-v3.js · constancyHTML)
   =================================================================== */
.hv3-const { position: relative; overflow: visible; }
.hv3-const-level {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--lvl, #64748b);
}
.hv3-const-level--cold { --lvl: #3b82f6; }
.hv3-const-level--cool { --lvl: #0ea5a4; }
.hv3-const-level--warm { --lvl: #d99a00; }
.hv3-const-level--hot  { --lvl: #f97316; }
.hv3-const-level--fire { --lvl: linear-gradient(90deg, #f97316, #e11d48); }

.hv3-const-goal-tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--hv-surface-2);
  color: var(--hv-text);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

/* "Sua semana" (2/3) e o termômetro (1/3) lado a lado no desktop */
.hv3-duo { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.hv3-duo > .hv3-card { min-width: 0; }
.hv3-const { display: flex; flex-direction: column; }
.hv3-const .hv3-sec-head { flex-wrap: wrap; gap: 10px; }
.hv3-const-body { display: flex; flex-direction: column; gap: 22px; }

/* número + termômetro */
.hv3-const-score { display: flex; align-items: baseline; gap: 4px; margin-bottom: 14px; }
.hv3-const-score strong { font-family: var(--hv-serif); font-size: 3.4rem; font-weight: 600; line-height: 0.9; letter-spacing: -0.04em; color: var(--hv-ink); font-variant-numeric: tabular-nums; }
.hv3-const-score > span { font-size: 1rem; font-weight: 700; color: var(--hv-muted); }
.hv3-const-streak { margin-left: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(249, 115, 22, 0.12); color: #c2410c; font-style: normal; font-size: 0.82rem; font-weight: 800; }
html.hv3[data-theme="dark"] .hv3-const-streak { color: #fdba74; }

.hv3-const-thermo { position: relative; }
.hv3-const-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: var(--hv-surface-2);
  box-shadow: inset 0 1px 2px rgba(15, 42, 38, 0.12);
  overflow: hidden;
}
html.hv3[data-theme="dark"] .hv3-const-track { background: var(--hv-surface-3); }
.hv3-const-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #3b82f6 0%, #0ea5a4 25%, #eab308 50%, #f97316 75%, #e11d48 100%);
  clip-path: inset(0 calc(100% - var(--fill, var(--score)) * 1%) 0 0 round 999px);
  transition: clip-path 1.1s var(--hv-ease);
}
.hv3-const-zones { display: grid; grid-template-columns: repeat(5, 1fr); margin: 10px 0 0; }
.hv3-const-zones span { font-size: 0.68rem; font-weight: 700; color: var(--hv-muted); text-align: center; opacity: 0.7; }
.hv3-const-zones span:first-child { text-align: left; }
.hv3-const-zones span:last-child { text-align: right; }
.hv3-const-zones span.is-on { color: var(--hv-ink); opacity: 1; font-weight: 800; }

/* semana atual + últimas 8 semanas */
.hv3-const-side { display: flex; flex-direction: column; gap: 18px; padding-bottom: 18px; }
.hv3-const-week { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; }
.hv3-const-dots { display: flex; gap: 6px; flex-shrink: 0; }
.hv3-const-dots i {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--hv-surface-2);
  box-shadow: inset 0 0 0 1.5px var(--hv-line);
}
.hv3-const-dots i.is-on { background: var(--hv-primary); box-shadow: none; animation: hv3ConstDot 0.5s var(--hv-spring) both; animation-delay: calc(var(--k) * 70ms + 300ms); }
/* 6º e 7º: além da meta, até o máximo */
.hv3-const-dots i.is-extra { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hv-gold); border-radius: 50%; }
.hv3-const-dots i.is-extra.is-on { background: var(--hv-gold); box-shadow: none; }
html.hv3[data-theme="dark"] .hv3-const-dots i.is-on:not(.is-extra) { background: var(--hv-gold-2); }
@keyframes hv3ConstDot { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.hv3-const-next { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hv3-const-next strong { font-size: 0.95rem; color: var(--hv-ink); }
.hv3-const-next span { font-size: 0.82rem; color: var(--hv-muted); font-weight: 600; }

.hv3-home .hv3-const-cta {
  align-self: flex-start;
  border: 0;
  cursor: pointer;
  font-family: var(--hv-font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--hv-primary);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: transform 0.25s var(--hv-spring), filter 0.2s;
}
.hv3-home .hv3-const-cta { background: var(--hv-primary) !important; }
.hv3-home .hv3-const-cta:hover { transform: translateY(-1px); filter: brightness(1.08); }
.hv3-const-cta svg { width: 15px; height: 15px; }

@media (max-width: 1100px) {
  .hv3-duo { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .hv3-const-score strong { font-size: 2.8rem; }
  .hv3-const-zones span { font-size: 0.6rem; }
  .hv3-home .hv3-const-cta { width: 100%; justify-content: center; }
}
