/* BeautyFlow — Identidade visual e layout canônico da Central de Ajuda */

:root,
body.theme-beauty {
  color-scheme: light dark;
  --night: #202a29;
  --night-2: #283633;
  --night-ink: #f5efe5;
  --night-muted: #afbab2;
  --night-line: #2f3e3a;
  --clay: #86654d;
  --clay-deep: #6c4d37;
  --clay-soft: #eee4d8;
  --clay-wash: rgba(134, 101, 77, 0.12);
  --bone: #f7f5f0;
  --paper: #ffffff;
  --line: #e6dfd5;
  --ink: #1e1d1a;
  --ink-2: #4a453f;
  --muted: #857f78;
  --radius: 8px;
  --sidebar-width: 256px;
  --topbar-height: 64px;
}

body.theme-beauty {
  background: var(--bone);
  color: var(--ink);
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
}

/* Sidebar e Identidade BeautyFlow */
body.theme-beauty .sidebar {
  background: var(--night);
  border-right: 1px solid var(--night-line);
}

body.theme-beauty .nav-link.is-active {
  background: var(--clay);
  color: var(--night-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

body.theme-beauty .nav-link:hover svg {
  color: var(--clay-soft);
}

body.theme-beauty .wordmark span {
  color: var(--clay);
}

body.theme-beauty .sidebar-footer {
  margin-top: auto;
  padding: 14px 12px 16px;
  border-top: 1px solid var(--night-line);
}

body.theme-beauty .sidebar-product-version {
  display: block;
  color: var(--night-muted);
  font-size: 0.68rem;
  font-weight: 500;
}

/* Topbar */
body.theme-beauty .topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  min-width: 0;
  margin-right: auto;
}

.breadcrumb-root {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  transition: color 150ms ease;
}

.breadcrumb-root:hover {
  color: var(--clay);
}

.breadcrumb-separator {
  color: var(--line);
  font-size: 0.85rem;
}

.breadcrumb-current {
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-beauty .topbar-app-link {
  background: var(--clay);
  color: var(--night-ink);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  transition: background 150ms ease;
}

body.theme-beauty .topbar-app-link:hover {
  background: var(--clay-deep);
}

body.theme-beauty .search-wrap input {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: 0.82rem;
}

body.theme-beauty .search-wrap input:focus {
  border-color: var(--clay);
  outline: 2px solid var(--clay-wash);
}

/* Hero Canônico Dark — Exatamente como no sistema (Print 2) */
.flows-ui-page-header-module {
  position: relative;
  overflow: hidden;
  min-height: 88px;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background-color: var(--night);
  background-image:
    linear-gradient(to right, rgba(236, 229, 216, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(236, 229, 216, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--night-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.flows-ui-page-header-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.flows-ui-page-header-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--clay-soft);
}

.flows-ui-page-header-icon svg {
  width: 24px;
  height: 24px;
}

.flows-ui-page-header-copy {
  min-width: 0;
}

.flows-ui-page-header-copy h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--night-ink);
}

.flows-ui-page-header-description {
  max-width: 720px;
  margin: 4px 0 0;
  color: var(--night-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.flows-ui-page-header-action {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--night-ink);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 150ms ease;
}

.btn-hero-back:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.btn-hero-back svg {
  width: 15px;
  height: 15px;
}

.btn-hero-open-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 16px;
  border-radius: var(--radius);
  background: var(--clay);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms ease;
}

.btn-hero-open-app:hover {
  background: var(--clay-deep);
}

.btn-hero-open-app svg {
  width: 14px;
  height: 14px;
}

/* Área de Conteúdo Canvas */
.page-canvas {
  padding: 24px 28px 48px;
  background: var(--bone);
  min-height: calc(100vh - var(--topbar-height) - 88px);
}

.hub-content {
  display: grid;
  gap: 32px;
}

.hub-section {
  display: grid;
  gap: 12px;
}

/* Título de seção em maiúsculas (exatamente como em Print 2, sem badges) */
.hub-section-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0;
}

/* Grid de 3 colunas (flows-hub-pattern) */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1024px) {
  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

/* Card Oficial FlowsHubCardStandard — Fiel ao Print 2 */
.flows-ui-hub-card-standard {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 94px;
  gap: 13px;
  padding: 17px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(32, 42, 41, 0.04);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.flows-ui-hub-card-standard:hover {
  border-color: color-mix(in srgb, var(--clay) 38%, var(--line));
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(27, 36, 39, 0.05), 0 18px 34px -22px rgba(27, 36, 39, 0.28);
  transform: translateY(-1px);
}

.flows-ui-hub-card-standard .hub-card-link {
  display: flex;
  align-items: stretch;
  gap: 13px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.flows-ui-hub-card-standard .hub-card-icon {
  display: grid;
  place-items: center;
  align-self: stretch;
  flex: 0 0 39px;
  width: 39px;
  height: auto;
  min-height: 0;
  border: 1px solid color-mix(in srgb, var(--clay) 20%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--clay) 8%, var(--paper));
  color: var(--clay);
}

.flows-ui-hub-card-standard .hub-card-icon svg {
  width: 21px;
  height: 21px;
}

.flows-ui-hub-card-standard .hub-card-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.flows-ui-hub-card-standard .hub-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.flows-ui-hub-card-standard .hub-card-title svg {
  flex: 0 0 auto;
  color: var(--muted);
  transition: color 0.15s, transform 0.15s;
}

.flows-ui-hub-card-standard:hover .hub-card-title svg {
  color: var(--clay);
  transform: translateX(2px);
}

.flows-ui-hub-card-standard .hub-card-description {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.45;
}

.flows-ui-hub-card-standard .hub-card-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  margin-left: auto;
}

.flows-ui-hub-card-standard .hub-card-favorite {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 150ms ease;
}

.flows-ui-hub-card-standard .hub-card-favorite:hover {
  border-color: var(--line);
  background: var(--bone);
  color: var(--clay);
}

.flows-ui-hub-card-standard .hub-card-favorite[aria-pressed="true"] {
  color: var(--clay);
}

.flows-ui-hub-card-standard .hub-card-favorite svg {
  width: 15px;
  height: 15px;
}

/* Guia de Passo a Passo das Telas de Artigo */
.guide-content {
  display: grid;
  gap: 24px;
}

.guide-step-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.guide-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.guide-step-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--night);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
  line-height: 1;
}

.step-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  background: var(--night);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

.guide-step-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.guide-step-card p {
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 14px;
}

.guide-step-card ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

.guide-step-card li {
  margin-bottom: 6px;
}

.guide-callout {
  padding: 14px 18px;
  border-radius: 6px;
  border-left: 4px solid var(--clay);
  background: var(--clay-wash);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 16px 0 0;
}

.guide-callout strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clay-deep);
  margin-bottom: 3px;
}

/* Molduras de Mídias e Vídeos */
.guide-media-frame {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bone);
}

.guide-media-frame img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.guide-media-caption {
  padding: 8px 14px;
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.guide-video-player {
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000000;
}

.guide-video-player video {
  width: 100%;
  max-height: 520px;
  display: block;
}

/* Intro da Janela (logo abaixo da hero) */
.window-intro-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(32, 42, 41, 0.04);
}

.window-intro-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clay);
}

.window-intro-header svg {
  color: var(--clay);
  flex-shrink: 0;
}

.window-intro-text {
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--ink);
  margin: 0;
}

.window-intro-text strong {
  color: var(--night);
  font-weight: 600;
}

/* Moldura da Tela Anotada com Pinos Numerados */
.annotated-screen-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
  box-shadow: 0 1px 4px rgba(32, 42, 41, 0.05);
}

.annotated-screen-visual {
  position: relative;
  width: 100%;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
  line-height: 0;
}

.annotated-screen-visual svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Interatividade e Estilo dos Pinos SVG (fixos, sem movimento/jitter) */
.screen-pin-group {
  cursor: pointer;
  pointer-events: auto;
}

.screen-pin-hit {
  pointer-events: auto;
  cursor: pointer;
}

.screen-pin-circle {
  fill: var(--clay);
  stroke: #ffffff;
  stroke-width: 2.5px;
  pointer-events: none;
  transition: fill 0.15s ease, stroke-width 0.15s ease, filter 0.15s ease;
}

.screen-pin-group:hover .screen-pin-circle,
.screen-pin-group.is-active .screen-pin-circle {
  fill: var(--night);
  stroke: #ffffff;
  stroke-width: 3.5px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.screen-pin-text {
  fill: #ffffff;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
}

/* Legenda sob a Imagem */
.annotated-legend-section {
  padding: 16px 20px 20px;
  background: var(--paper);
}

.annotated-legend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 860px) {
  .annotated-legend-grid {
    grid-template-columns: 1fr;
  }
}

.legend-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bone-light, #faf8f5);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.legend-card:hover,
.legend-card.is-active {
  background: #ffffff;
  border-color: var(--clay);
  box-shadow: 0 2px 10px rgba(134, 101, 77, 0.14);
}

.legend-pin-badge {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--clay);
  color: #ffffff;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 4px rgba(134, 101, 77, 0.3);
  transition: background 0.18s ease;
}

.legend-card:hover .legend-pin-badge,
.legend-card.is-active .legend-pin-badge {
  background: var(--night);
}

/* Visão Geral do Sistema na Página Inicial (Início) — 100% da largura útil */
.home-overview {
  display: grid;
  gap: 24px;
  width: 100%;
}

.home-intro-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 1px 4px rgba(32, 42, 41, 0.04);
}

.home-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--clay-wash);
  color: var(--clay-deep);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.home-intro-badge svg {
  color: var(--clay);
}

.home-intro-title {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--night);
  margin: 0 0 14px;
  line-height: 1.35;
}

.home-intro-lead {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink-2);
  margin: 0;
}

.home-intro-lead strong {
  color: var(--night);
  font-weight: 600;
}

.home-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 860px) {
  .home-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.home-pillar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(32, 42, 41, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-pillar-card:hover {
  border-color: var(--clay);
  box-shadow: 0 4px 12px rgba(134, 101, 77, 0.08);
}

.home-pillar-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--clay-wash);
  color: var(--clay);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.home-pillar-icon svg {
  width: 20px;
  height: 20px;
}

.home-pillar-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--night);
  margin: 0;
}

.home-pillar-desc {
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--ink-2);
  margin: 0;
}

.home-pillar-list {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.home-pillar-list li {
  margin-bottom: 4px;
}

.home-docs-guide {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 1px 3px rgba(32, 42, 41, 0.03);
}

@media (max-width: 768px) {
  .home-docs-guide {
    flex-direction: column;
    align-items: flex-start;
  }
}

.home-docs-guide-copy h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--night);
  margin: 0 0 6px;
}

.home-docs-guide-copy p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

.home-docs-guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--bone);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.home-docs-guide-badge kbd {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 0.76rem;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.legend-info {
  flex: 1;
  min-width: 0;
}

.legend-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.legend-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.legend-item-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--clay-wash);
  color: var(--clay-deep);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legend-item-desc {
  font-size: 0.84rem;
  line-height: 1.58;
  color: var(--ink-2);
  margin: 0;
}


/* Celular: hero empilhado (título e descrição em largura total, ações abaixo), sem esmagar o texto. */
@media (max-width: 760px) {
  .flows-ui-page-header-module {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 16px;
  }

  .flows-ui-page-header-main {
    align-items: flex-start;
    gap: 12px;
  }

  .flows-ui-page-header-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .flows-ui-page-header-action {
    flex-wrap: wrap;
  }
}

.screen-missing {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bone);
  color: var(--ink-2);
  font-size: 0.86rem;
}

.article-items {
  display: grid;
  gap: 12px;
}

.article-items-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.article-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.article-item-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.article-item-card:hover {
  border-color: var(--clay);
}

.article-item-card strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--night);
}

.article-item-card strong svg {
  width: 13px;
  height: 13px;
  color: var(--clay);
}

.article-item-card span {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-2);
}
