/* ==========================================================================
   CONSELHO DE MENTES GENIAIS · ÉDITION D'ART
   DESIGN SYSTEM BASEADO EM DESIGN.MD E REFERÊNCIA 2
   ========================================================================== */

:root {
  /* CORES DA PALETA ARQUIVÍSTICA (DESIGN.MD - SEÇÃO 3 & 22) */
  --paper: #F4F1E9;
  --paper-hi: #F8F6F0;
  --paper-shadow: #E5E0D5;
  --paper-edge: #DDD6C8;

  --ink: #3E3D37;
  --ink-soft: #626159;
  --ink-faint: #8C897F;

  --olive: #696B58;
  --olive-dark: #555848;

  --earth: #776E58;
  --stone: #A79C81;
  --gold: #C8AE7D;
  --haze: #DDD0B2;

  --rule: rgba(62, 61, 55, 0.36);
  --rule-faint: rgba(62, 61, 55, 0.18);
  --rule-fine: rgba(62, 61, 55, 0.10);

  /* TIPOGRAFIA EDITORIAL E TÉCNICA */
  --font-display: "Bodoni Moda", "Times New Roman", Georgia, serif;
  --font-meta: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --font-machine: "DM Mono", monospace;

  /* ESCALA TIPOGRÁFICA */
  --micro: 6.5px;
  --meta: 8px;
  --caption: 9px;
  --small: 11px;
  --body: 13px;
  --display-sm: clamp(34px, 4.2vw, 48px);
  --display-lg: clamp(56px, 7.5vw, 88px);

  /* ESPAÇAMENTOS E GEOMETRIA */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --s10: 40px;
  --s12: 48px;
  --s16: 64px;

  --radius: 0px;
  --edge: 1px;

  /* TRANSIÇÕES RESTRITAS */
  --fast: 160ms;
  --base: 280ms;
  --slow: 800ms;
  --ease-editorial: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* MOTION TOKENS - MATERIAL DESIGN 3 (M3 TRANSITION PATTERNS) */
  --m3-easing-emphasized: cubic-bezier(0.2, 0.0, 0, 1.0);
  --m3-easing-emphasized-accelerate: cubic-bezier(0.3, 0.0, 0.8, 0.15);
  --m3-duration-enter: 500ms;
  --m3-duration-exit: 350ms;
  --m3-sheet-width: 380px;
}

/* RESET E BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
}

html {
  font-size: 16px;
  background-color: var(--paper);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.editorial-body {
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-meta);
  display: block;
  width: 100%;
  position: relative;
  overflow-x: hidden;
  line-height: 1.4;
}

/* TEXTURA PROCEDURAL SUTIL DE PAPEL NÃO REVESTIDO */
.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: radial-gradient(#3E3D37 1px, transparent 1px);
  background-size: 4px 4px;
}

/* ==========================================================================
   HERO FULLWIDTH (DIRETO NO TOPO, 100% DA LARGURA DA PÁGINA)
   ========================================================================== */

.hero-fullwidth {
  width: 100%;
  max-width: 100%;
  background-color: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 28px rgba(62, 61, 55, 0.05);
}

/* FAIXA 1: MASTHEAD SUPERIOR COM NAVEGAÇÃO INTEGRADA */
.hero-masthead {
  width: 100%;
  padding: 12px 32px 10px;
  background-color: var(--paper);
  border-bottom: 1px solid var(--rule-faint);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

/* Linha de Navegação e Controles Embutida no Topo da Hero */
.masthead-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-fine);
  font-family: var(--font-machine);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-center {
  display: flex;
  align-items: center;
}

.nav-status {
  display: flex;
  align-items: center;
}

.util-link {
  background: transparent;
  border: 1px solid var(--rule-faint);
  color: var(--ink);
  font-family: var(--font-machine);
  font-size: 10px;
  letter-spacing: 0.09em;
  padding: 5px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 280ms cubic-bezier(0.2, 0, 0, 1),
              color 280ms cubic-bezier(0.2, 0, 0, 1),
              border-color 280ms cubic-bezier(0.2, 0, 0, 1),
              transform 280ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 280ms cubic-bezier(0.2, 0, 0, 1);
}

.util-link:hover {
  background-color: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(62, 61, 55, 0.12);
}

.util-link:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(62, 61, 55, 0.08);
  transition-duration: 80ms;
}

.util-bullet {
  font-size: 10px;
}

.hall-badge {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
  font-family: var(--font-meta);
  font-weight: 500;
}

.engine-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-machine);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink);
  padding: 4px 10px;
  border: 1px solid var(--rule-faint);
  background-color: var(--paper);
}

.status-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  background-color: var(--olive);
}

.status-dot.ready {
  background-color: #555848;
  box-shadow: 0 0 4px rgba(85, 88, 72, 0.4);
}

.status-dot.error {
  background-color: #8c2a2a;
}

/* CONTAINER DA MESA DO CONSELHO */
.council-chassis-container {
  width: 100%;
  max-width: 1280px;
  padding: 32px 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Linha superior: metadados e globos */
.masthead-top-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-meta);
  font-size: var(--meta);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink);
  text-transform: uppercase;
}

.masthead-unit {
  display: flex;
  align-items: center;
  gap: 12px;
}

.masthead-unit.unit-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.specimen-globe {
  width: 24px;
  height: 24px;
  color: var(--ink);
  opacity: 0.95;
  overflow: visible;
  display: inline-block;
  vertical-align: middle;
}

.rotating-globe .globe-rotator {
  transform-origin: 24px 24px;
  transform-box: fill-box;
  animation: globeMeridianSpin 8s linear infinite;
}

.rotating-globe.right-globe .globe-rotator {
  animation: globeMeridianSpinReverse 9s linear infinite;
}

@keyframes globeMeridianSpin {
  0% {
    transform: rotate(15deg) rotateY(0deg);
  }
  100% {
    transform: rotate(15deg) rotateY(360deg);
  }
}

@keyframes globeMeridianSpinReverse {
  0% {
    transform: rotate(-15deg) rotateY(360deg);
  }
  100% {
    transform: rotate(-15deg) rotateY(0deg);
  }
}

.celestial-pair {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.celestial-pair svg {
  width: 24px;
  height: 12px;
  transform-origin: center;
  transform-box: fill-box;
  animation: celestialOrbit 7s ease-in-out infinite alternate;
}

@keyframes celestialOrbit {
  0% {
    transform: rotate(0deg) scale(0.96);
  }
  50% {
    transform: rotate(180deg) scale(1.08);
  }
  100% {
    transform: rotate(360deg) scale(0.96);
  }
}

/* Linha central: Conselho de Mentes Geniais */
.masthead-title-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 4px 0;
}

.title-side-col {
  display: flex;
  align-items: center;
  gap: 16px;
}

.title-side-col.left-col {
  justify-content: flex-start;
}

.title-side-col.right-col {
  justify-content: flex-end;
}

.side-symbols {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.specimen-star {
  width: 18px;
  height: 18px;
  stroke: var(--ink);
  transform-origin: center;
  transform-box: fill-box;
}

.specimen-star.star-left {
  animation: starSpinCW 16s linear infinite;
}

.specimen-star.star-right {
  animation: starSpinCCW 16s linear infinite;
}

@keyframes starSpinCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes starSpinCCW {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.pair-circles {
  display: flex;
  gap: 4px;
}

.pair-circles span {
  width: 5px;
  height: 5px;
  border: 1px solid var(--ink);
  border-radius: 50% !important;
  display: inline-block;
}

.pair-circles span:first-child {
  animation: circleAlternateA 2.6s ease-in-out infinite alternate;
}

.pair-circles span:last-child {
  animation: circleAlternateB 2.6s ease-in-out infinite alternate;
}

@keyframes circleAlternateA {
  0% { opacity: 0.25; transform: scale(0.75); }
  100% { opacity: 1; transform: scale(1.25); background-color: var(--ink); }
}

@keyframes circleAlternateB {
  0% { opacity: 1; transform: scale(1.25); background-color: var(--ink); }
  100% { opacity: 0.25; transform: scale(0.75); }
}

.year-stamp {
  font-family: var(--font-machine);
  font-size: var(--caption);
  letter-spacing: 0.18em;
  color: var(--ink);
}

.title-center-col {
  text-align: center;
  padding: 0 20px;
}

.display-serif-top {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 3.2vw, 42px);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}

/* Linha de triângulos apontando para a moldura chanfrada */
.masthead-triangles-row {
  display: flex;
  justify-content: space-around;
  padding: 4px 15% 0;
  color: var(--ink);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.arrowhead {
  font-size: 7px;
  color: var(--ink);
  line-height: 1;
}

/* --------------------------------------------------------------------------
   2. FAIXA CENTRAL / LANDSCAPE PLATE COM MOLDURA CHANFRADA HUD (~56%)
   -------------------------------------------------------------------------- */
.hero-viewport {
  width: 100%;
  position: relative;
  background-color: var(--paper);
  padding: 12px 32px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.clip-svg-def {
  position: absolute;
  width: 0;
  height: 0;
}

.landscape-frame {
  width: 100%;
  position: relative;
  aspect-ratio: 21 / 9;
  min-height: 380px;
  max-height: 520px;
  background-color: var(--paper-shadow);
  clip-path: polygon(
    0 8%,
    2% 2%,
    8% 2%,
    10% 5%,
    18% 5%,
    20% 2%,
    80% 2%,
    82% 5%,
    90% 5%,
    92% 2%,
    98% 2%,
    100% 8%,
    100% 92%,
    98% 98%,
    92% 98%,
    90% 95%,
    61% 95%,
    59% 98%,
    41% 98%,
    39% 95%,
    10% 95%,
    8% 98%,
    2% 98%,
    0 92%
  );
  overflow: hidden;
}

/* Efeito sutil de contorno chanfrado simulando a moldura recortada */
.landscape-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--rule);
  pointer-events: none;
  z-index: 2;
}

.landscape-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  display: block;
  /* Tratamento analógico de gravura alpina do século XIX (DESIGN.MD) */
  filter: saturate(0.82) sepia(0.12) contrast(0.96) brightness(1.02);
  transition: transform var(--slow) var(--ease-editorial), filter var(--slow) var(--ease-editorial);
}

.landscape-frame:hover .landscape-image {
  transform: scale(1.012);
  filter: saturate(0.88) sepia(0.08) contrast(1.0) brightness(1.03);
}

.landscape-overlay-haze {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 65% 30%, rgba(248, 246, 240, 0.12), transparent 70%);
  mix-blend-mode: soft-light;
}

/* Botão Central de Play: Iniciar na Hero */
.hero-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 26px;
  background: rgba(26, 24, 20, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 174, 125, 0.6);
  border-radius: 40px !important;
  color: #f7edd6;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 22px rgba(200, 174, 125, 0.22);
  transition: all 320ms cubic-bezier(0.2, 0, 0, 1);
  user-select: none;
}

.hero-play-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c8ae7d 0%, #9d7738 100%);
  color: #1a1814;
  border-radius: 50% !important;
  box-shadow: 0 2px 10px rgba(200, 174, 125, 0.4);
  transition: transform 300ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 300ms cubic-bezier(0.2, 0, 0, 1);
}

.hero-play-icon svg {
  width: 15px;
  height: 15px;
  margin-left: 2px;
}

.hero-play-text {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  letter-spacing: 0.08em;
  color: #fdfaf2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Hover suave, nobre e com glow clássico */
.hero-play-button:hover {
  background: rgba(38, 35, 29, 0.94);
  border-color: #c8ae7d;
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.55), 0 0 32px rgba(200, 174, 125, 0.45);
}

.hero-play-button:hover .hero-play-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(200, 174, 125, 0.65);
}

.hero-play-button:active {
  transform: translate(-50%, -50%) scale(0.98);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition-duration: 80ms;
}

/* Ocultação animada em fade do Botão Iniciar */
.hero-play-button.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.9);
  pointer-events: none;
  transition: opacity 320ms cubic-bezier(0.2, 0, 0, 1),
              transform 320ms cubic-bezier(0.2, 0, 0, 1),
              visibility 0ms 320ms;
}

/* Expansão e adaptação da moldura da Hero quando o painel de deliberação está ativo */
.landscape-frame.overlay-active {
  min-height: 680px;
  max-height: 800px;
  aspect-ratio: auto;
  clip-path: none;
  border: 1px solid var(--gold);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
  transition: min-height 420ms cubic-bezier(0.2, 0, 0, 1),
              max-height 420ms cubic-bezier(0.2, 0, 0, 1),
              border-color 300ms ease;
}

/* ==========================================================================
   OVERLAYS DE DELIBERAÇÃO NO ESPAÇO DA HERO (SETUP E SESSÃO ATIVA)
   ========================================================================== */

.hero-stage-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(244, 241, 233, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.99);
  pointer-events: none;
  padding: 14px 22px 18px;
  box-sizing: border-box;
  overflow: hidden;
  transition: opacity 380ms cubic-bezier(0.2, 0, 0, 1),
              transform 380ms cubic-bezier(0.2, 0, 0, 1),
              visibility 0ms 380ms;
}

.hero-stage-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity 380ms cubic-bezier(0.2, 0, 0, 1),
              transform 380ms cubic-bezier(0.2, 0, 0, 1),
              visibility 0ms 0ms;
}

/* Cabeçalho do Painel da Hero */
.hero-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--rule-faint);
  flex-shrink: 0;
}

.overlay-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-machine);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink);
  font-weight: 500;
  text-transform: uppercase;
}

.overlay-header-badge .badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--olive-dark);
  border-radius: 50% !important;
  box-shadow: 0 0 6px rgba(85, 88, 72, 0.6);
}

.overlay-close-btn {
  background: transparent;
  border: 1px solid var(--rule-faint);
  color: var(--ink);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 240ms cubic-bezier(0.2, 0, 0, 1);
}

.overlay-close-btn:hover {
  background-color: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: rotate(90deg);
}

/* Layout Split na Hero (Setup) */
.hero-split-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 24px;
  height: calc(100% - 44px);
  overflow: hidden;
}

/* Coluna Esquerda: Sidebar de Redação e Configurações */
.hero-split-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 8px;
  border-right: 1px solid var(--rule-fine);
}

.hero-textarea {
  width: 100%;
  height: 100px;
  background-color: var(--paper-hi);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-meta);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 10px 12px;
  resize: none;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.hero-textarea:focus {
  border-color: var(--olive-dark);
  box-shadow: 0 0 0 2px rgba(85, 88, 72, 0.15);
}

.hero-split-left .examples-strip {
  margin-top: 0;
  gap: 6px;
}

.hero-split-left .examples-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.hero-split-left .specimen-chip {
  font-size: 9.5px;
  padding: 4px 8px;
}

.hero-split-left .tactical-selectors-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.setup-launch-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--rule-fine);
  margin-top: auto;
}

.setup-launch-row .protocol-estimate {
  font-family: var(--font-machine);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  text-align: center;
}

.setup-launch-row .btn-launch-council {
  width: 100%;
  justify-content: center;
}

/* Coluna Direita: Cards dos Pensadores (Espaço Expandido e Monumental) */
.hero-split-right {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-left: 6px;
  overflow: hidden;
}

.members-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.members-header-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.members-header-title .sheet-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.members-header-title .sheet-subtitle {
  font-size: 10.5px;
  color: var(--ink-faint);
  font-style: italic;
}

/* Galeria com Scrollbar Elegante e Cards Maiores */
.hero-members-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  overflow-y: auto;
  padding: 4px 10px 16px 2px;
  height: 100%;
}

/* Estilização da Barra de Rolagem Elegante */
.hero-members-gallery::-webkit-scrollbar,
.hero-outputs-stream::-webkit-scrollbar,
.verdict-modal-body::-webkit-scrollbar,
.hero-split-left::-webkit-scrollbar {
  width: 6px;
}

.hero-members-gallery::-webkit-scrollbar-track,
.hero-outputs-stream::-webkit-scrollbar-track,
.verdict-modal-body::-webkit-scrollbar-track,
.hero-split-left::-webkit-scrollbar-track {
  background: rgba(62, 61, 55, 0.05);
}

.hero-members-gallery::-webkit-scrollbar-thumb,
.hero-outputs-stream::-webkit-scrollbar-thumb,
.verdict-modal-body::-webkit-scrollbar-thumb,
.hero-split-left::-webkit-scrollbar-thumb {
  background: var(--stone);
  transition: background 200ms ease;
}

.hero-members-gallery::-webkit-scrollbar-thumb:hover,
.hero-outputs-stream::-webkit-scrollbar-thumb:hover,
.verdict-modal-body::-webkit-scrollbar-thumb:hover,
.hero-split-left::-webkit-scrollbar-thumb:hover {
  background: var(--olive-dark);
}

/* Cards Monumentais dos Pensadores (Visual Original Autêntico de Estampilha) */
.hero-members-gallery .member-card {
  display: flex;
  flex-direction: column;
  background-color: #faf7f0;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(45, 40, 30, 0.04);
  padding: 0;
}

.hero-members-gallery .member-card:hover {
  border-color: #8c6833;
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(45, 40, 30, 0.12);
}

.hero-members-gallery .member-card:hover .member-bust {
  transform: scale(1.04) translateY(-2px);
  filter: drop-shadow(0 14px 22px rgba(35, 30, 20, 0.25));
}

.hero-members-gallery .member-card.selected {
  border-color: #9d7738;
  box-shadow: 0 8px 24px rgba(157, 119, 56, 0.22), 0 0 0 1.5px #9d7738;
  background-color: #fdfbf7;
}

/* Área do Busto Esculpido Transparente */
.hero-members-gallery .bust-wrapper {
  position: relative;
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px 6px;
  background: radial-gradient(circle at 50% 50%, rgba(215, 200, 175, 0.32) 0%, rgba(248, 245, 238, 0.1) 68%, transparent 100%);
  overflow: hidden;
  border-radius: 0 !important;
  border: none;
  margin-bottom: 0;
}

.hero-members-gallery .member-bust {
  max-height: 135px;
  max-width: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(40, 35, 25, 0.16));
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  user-select: none;
}

/* Indicador de Seleção no Canto Superior Direito */
.hero-members-gallery .member-checkbox {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50% !important;
  border: 1px solid rgba(80, 70, 55, 0.28);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  color: var(--ink-soft);
  font-family: var(--font-machine);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
  bottom: auto;
}

.hero-members-gallery .member-card.selected .member-checkbox {
  background-color: #9d7738;
  border-color: #9d7738;
  color: #fff;
  box-shadow: 0 2px 8px rgba(157, 119, 56, 0.45);
}

/* Plaqueta Inferior */
.hero-members-gallery .member-plaque {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, #f7f3ea 0%, #ede6d7 100%);
  border-top: 1px solid var(--rule);
  text-align: center;
  transition: background 0.25s ease, color 0.25s ease;
  position: relative;
  width: 100%;
}

.hero-members-gallery .member-plaque::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157, 119, 56, 0.35), transparent);
}

.hero-members-gallery .member-card.selected .member-plaque {
  background: linear-gradient(180deg, #2b2722 0%, #1c1a17 100%);
  border-top-color: #9d7738;
}

.hero-members-gallery .member-name {
  font-family: var(--font-display), 'Bodoni Moda', Georgia, serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  transition: color 0.2s ease;
  margin-bottom: 0;
}

.hero-members-gallery .member-card.selected .member-name {
  color: #f7edd6;
}

.hero-members-gallery .member-domain {
  font-family: var(--font-machine), 'DM Mono', monospace;
  font-size: 8.5px;
  color: #6b6355;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.hero-members-gallery .member-card.selected .member-domain {
  color: #c9bda4;
}

/* ==========================================================================
   SESSÃO ATIVA NA HERO & PALCO DE PENSAMENTO EM TEMPO REAL
   ========================================================================== */

.hero-session-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.session-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Botão de Fechar a Sessão e Voltar à Página Inicial */
.btn-editorial-close-session {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  padding: 6px 14px;
  font-family: var(--font-machine);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  transition: all 220ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-editorial-close-session:hover {
  background-color: var(--ink);
  color: var(--paper-hi);
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* Botão Imperial de Veredito Final Soberano */
.btn-verdict-highlight {
  background: linear-gradient(135deg, #d8b776 0%, #b89345 45%, #927027 100%);
  color: #161410;
  border: 1.5px solid #ffe29e;
  padding: 8px 18px;
  font-family: var(--font-machine);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  box-shadow: 0 4px 18px rgba(184, 147, 69, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: all 260ms cubic-bezier(0.2, 0, 0, 1);
  animation: verdictPulseImperial 3s infinite ease-in-out;
}

.btn-verdict-highlight::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: rotate(25deg);
  animation: shimmerVerdict 3.6s infinite ease-in-out;
}

@keyframes shimmerVerdict {
  0% { left: -60%; }
  30%, 100% { left: 160%; }
}

.btn-verdict-highlight:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(184, 147, 69, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border-color: #fff2cc;
}

@keyframes verdictPulseImperial {
  0%, 100% {
    box-shadow: 0 3px 12px rgba(184, 147, 69, 0.35);
  }
  50% {
    box-shadow: 0 6px 26px rgba(184, 147, 69, 0.75);
  }
}

/* Palco de Pensamento em Tempo Real */
.live-thinking-stage {
  min-height: 102px;
  background: linear-gradient(180deg, rgba(250, 248, 243, 0.94) 0%, rgba(240, 235, 224, 0.94) 100%);
  border: 1px solid var(--rule);
  margin-bottom: 12px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* Coluna com Busto + Plaqueta de Nome do Pensador */
.thinking-bust-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.thinking-bust-name-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  background-color: var(--paper-hi);
  border: 1px solid var(--gold);
  border-radius: 3px;
  padding: 2px 8px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Cenário 1: Pensador Individual */
.thinking-individual-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.thinking-bust-box {
  width: 58px;
  height: 58px;
  border-radius: 50% !important;
  overflow: hidden;
  border: 2px solid var(--gold);
  background-color: #dfd8c7;
  position: relative;
  flex-shrink: 0;
  animation: thinkerAura 2.2s infinite alternate ease-in-out;
}

@keyframes thinkerAura {
  0% {
    box-shadow: 0 0 6px rgba(200, 174, 125, 0.4);
  }
  100% {
    box-shadow: 0 0 20px rgba(200, 174, 125, 0.85);
  }
}

.thinking-bust-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Balão de Pensamento Estilizado */
.thinking-bubble {
  position: relative;
  background: var(--paper-hi);
  border: 1px solid var(--rule);
  padding: 12px 18px;
  border-radius: 12px !important;
  flex-grow: 1;
  box-shadow: 0 4px 14px rgba(62, 61, 55, 0.08);
}

.thinking-bubble::before,
.thinking-bubble::after {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  background: var(--paper-hi);
  border: 1px solid var(--rule);
  border-radius: 50% !important;
}

.thinking-bubble::before {
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
}

.thinking-bubble::after {
  left: -18px;
  width: 6px;
  height: 6px;
  transform: translateY(-20%);
}

.thinking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  border-bottom: 1px dashed rgba(157, 119, 56, 0.25);
  padding-bottom: 4px;
}

.thinking-identity {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.thinking-thinker-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.thinking-thinker-domain {
  font-family: var(--font-machine);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive-dark);
}

.thinking-dots-anim {
  display: inline-flex;
  gap: 3px;
}

.thinking-dots-anim span {
  width: 4px;
  height: 4px;
  background-color: var(--olive-dark);
  border-radius: 50% !important;
  animation: thinkingDotJump 1.4s infinite ease-in-out;
}

.thinking-dots-anim span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots-anim span:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinkingDotJump {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

.thinking-text-content {
  font-family: var(--font-meta);
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}

/* Cenário 2: Embate Dialético entre 2 Pensadores */
.thinking-clash-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 14px;
}

.clash-thinker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 0;
}

.clash-thinker.reverse {
  flex-direction: row-reverse;
  text-align: right;
}

.clash-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 14px;
  background-color: var(--ink);
  color: var(--paper);
  border: 1px solid var(--gold);
  font-family: var(--font-machine);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(200, 174, 125, 0.4);
  animation: clashGlow 2s infinite alternate ease-in-out;
  flex-shrink: 0;
}

@keyframes clashGlow {
  0% { transform: scale(0.96); }
  100% { transform: scale(1.04); box-shadow: 0 0 20px rgba(200, 174, 125, 0.7); }
}

.clash-spark {
  font-size: 12px;
  color: var(--gold);
}

.clash-bubble {
  flex: 1 1 0;
  padding: 8px 14px;
  background: var(--paper-hi);
  border: 1px solid var(--rule);
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.clash-bubble-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 3px;
  border-bottom: 1px dashed rgba(157, 119, 56, 0.2);
  padding-bottom: 2px;
}

.clash-thinker.reverse .clash-bubble-header {
  justify-content: flex-end;
}

.clash-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--ink);
}

.clash-domain {
  font-family: var(--font-machine);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.clash-text {
  font-size: 11px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.4;
  margin: 0;
}

/* Barra de Dilema */
.session-question-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background-color: var(--paper-hi);
  border: 1px solid var(--rule-fine);
  margin-bottom: 10px;
  font-family: var(--font-machine);
  font-size: 10.5px;
  flex-shrink: 0;
}

.session-question-bar .question-tag {
  color: var(--olive-dark);
  font-weight: bold;
}

.session-question-bar .question-text {
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Abas de Fases */
.hero-phase-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 10px;
  flex-shrink: 0;
}

.phase-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  padding: 6px 14px;
  font-family: var(--font-machine);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: all 220ms ease;
}

.phase-tab-btn:hover {
  color: var(--ink);
  background-color: rgba(62, 61, 55, 0.04);
}

.phase-tab-btn.active {
  color: var(--ink);
  background-color: var(--paper-hi);
  border-color: var(--rule);
  border-top: 2px solid var(--olive-dark);
  font-weight: 600;
}

.phase-tab-btn .tab-number {
  color: var(--olive-dark);
  font-weight: bold;
}

/* Corpo da Sessão & Stream de Respostas */
.hero-session-body {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-outputs-stream {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 28px 48px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ==========================================================================
   MODAL MONUMENTAL DE VEREDITO ILUSTRADO (ACTA MAGNA)
   ========================================================================== */

.verdict-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(18, 16, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms cubic-bezier(0.2, 0, 0, 1),
              visibility 0ms 320ms;
}

.verdict-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 320ms cubic-bezier(0.2, 0, 0, 1),
              visibility 0ms 0ms;
}

.verdict-modal-dialog {
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  background: #fcfbf7;
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 35px rgba(200, 174, 125, 0.3);
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(16px);
  transition: transform 340ms cubic-bezier(0.2, 0, 0, 1);
  overflow: hidden;
  position: relative;
}

.verdict-modal-backdrop.open .verdict-modal-dialog {
  transform: scale(1) translateY(0);
}

/* Fita Superior Imperial */
.verdict-modal-top-ribbon {
  background: linear-gradient(90deg, #9d7738 0%, #c8ae7d 50%, #9d7738 100%);
  color: #1a1713;
  padding: 4px 16px;
  text-align: center;
  font-family: var(--font-machine);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.verdict-modal-header {
  padding: 16px 28px;
  background: linear-gradient(180deg, #fdfaf2 0%, #f5efe0 100%);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.verdict-modal-seal-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, #fcf8ee 0%, #e2d7be 100%);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), inset 0 0 6px rgba(157, 119, 56, 0.3);
  flex-shrink: 0;
}

.verdict-modal-seal {
  font-size: 24px;
  line-height: 1;
}

.verdict-modal-titles {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.verdict-micro-tag {
  font-family: var(--font-machine);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--olive-dark);
  text-transform: uppercase;
  font-weight: 600;
}

.verdict-modal-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.01em;
}

.verdict-modal-close {
  background: transparent;
  border: 1px solid var(--rule-faint);
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 220ms ease;
}

.verdict-modal-close:hover {
  background-color: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Banner de Consenso Dialético */
.verdict-consensus-banner {
  padding: 10px 28px;
  background: linear-gradient(90deg, rgba(200, 174, 125, 0.22) 0%, rgba(245, 239, 224, 0.6) 100%);
  border-bottom: 1px solid var(--rule-faint);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.consensus-badge {
  font-family: var(--font-machine);
  font-size: 9px;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  background-color: var(--ink);
  color: #f7edd6;
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-weight: 600;
  white-space: nowrap;
}

.consensus-label {
  font-family: var(--font-meta);
  font-size: 12px;
  color: var(--ink-soft);
  font-style: italic;
}

/* Corpo do Modal - Acta Magna */
.verdict-modal-body {
  padding: 32px 48px;
  overflow-y: auto;
  flex-grow: 1;
  background-color: #fdfcf9;
  background-image: radial-gradient(circle at 50% 30%, rgba(200, 174, 125, 0.06) 0%, transparent 70%);
}

.acta-content {
  font-family: var(--font-meta);
  font-size: 15px;
  line-height: 1.9;
  color: #2b2722;
}

.acta-content > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  margin-right: 10px;
  padding: 4px 4px 0 0;
  color: var(--gold);
}

/* Bloco de Signatários / Mentes Geniais */
.verdict-signers-container {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1.5px solid var(--rule);
}

.signers-title {
  font-family: var(--font-machine);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.signers-title::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background: var(--rule-faint);
}

.signers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.signer-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f5ed;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 6px 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.signer-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  object-fit: cover;
  background-color: var(--paper-shadow);
}

.signer-info {
  display: flex;
  flex-direction: column;
}

.signer-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.signer-domain {
  font-family: var(--font-machine);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.verdict-modal-footer {
  padding: 16px 28px;
  background: linear-gradient(180deg, #f7f3eb 0%, #ece5d6 100%);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   3. FAIXA INFERIOR / TITLE PLATE MONUMENTAL SAPIENTIA (~30%)
   -------------------------------------------------------------------------- */
.title-plate {
  width: 100%;
  padding: 14px 32px 24px;
  background-color: var(--paper);
  border-top: 1px solid var(--rule-faint);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

/* Linha de Códigos de Barras e Símbolos CO */
.plate-top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.co-badge {
  color: var(--ink);
  display: flex;
  align-items: center;
}

.co-badge svg {
  width: 28px;
  height: 14px;
  transform-origin: center;
  transform-box: fill-box;
}

.co-badge.left-co svg {
  animation: coRotateCW 14s linear infinite;
}

.co-badge.right-co svg {
  animation: coRotateCCW 14s linear infinite;
}

@keyframes coRotateCW {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.06); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes coRotateCCW {
  0% { transform: rotate(360deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.06); }
  100% { transform: rotate(0deg) scale(1); }
}

.barcode-wrapper {
  color: var(--ink);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 1px 0;
}

.barcode-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(105, 107, 88, 0.4), rgba(200, 174, 125, 0.6), transparent);
  pointer-events: none;
  animation: barcodeScanPulse 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes barcodeScanPulse {
  0% { transform: translateX(0); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(500%); opacity: 0; }
}

.specimen-barcode {
  width: 140px;
  height: 12px;
}

.specimen-barcode rect {
  transform-origin: bottom;
  transform-box: fill-box;
  animation: barcodeBarOscillate 3.8s ease-in-out infinite alternate;
}

.specimen-barcode rect:nth-child(2n) {
  animation-delay: 0.25s;
}

.specimen-barcode rect:nth-child(3n) {
  animation-delay: 0.6s;
}

.specimen-barcode rect:nth-child(5n) {
  animation-delay: 1.1s;
}

@keyframes barcodeBarOscillate {
  0% { transform: scaleY(0.92); opacity: 0.85; }
  50% { transform: scaleY(1.02); opacity: 1; }
  100% { transform: scaleY(0.88); opacity: 0.78; }
}

.plate-center-notch {
  color: var(--ink);
  font-size: 8px;
  user-select: none;
}

.notch-arrow {
  display: inline-block;
  animation: arrowBreathing 2.2s ease-in-out infinite alternate;
}

/* Réguas Milimétricas Verticais nos Cantos Inferiores */
.measurement-rail {
  position: absolute;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
  opacity: 0.85;
}

.measurement-rail.left-rail {
  left: 12px;
}

.measurement-rail.right-rail {
  right: 12px;
}

.measurement-rail i {
  display: block;
  height: 1px;
  background-color: var(--ink);
  transform-origin: left;
  animation: railWave 2.6s ease-in-out infinite;
}

.measurement-rail.right-rail i {
  transform-origin: right;
}

.measurement-rail i:nth-child(1) { animation-delay: 0.0s; }
.measurement-rail i:nth-child(2) { animation-delay: 0.16s; }
.measurement-rail i:nth-child(3) { animation-delay: 0.32s; }
.measurement-rail i:nth-child(4) { animation-delay: 0.48s; }
.measurement-rail i:nth-child(5) { animation-delay: 0.64s; }
.measurement-rail i:nth-child(6) { animation-delay: 0.80s; }
.measurement-rail i:nth-child(7) { animation-delay: 0.96s; }
.measurement-rail i:nth-child(8) { animation-delay: 1.12s; }
.measurement-rail i:nth-child(9) { animation-delay: 1.28s; }
.measurement-rail i:nth-child(10) { animation-delay: 1.44s; }
.measurement-rail i:nth-child(11) { animation-delay: 1.60s; }
.measurement-rail i:nth-child(12) { animation-delay: 1.76s; }

@keyframes railWave {
  0%, 100% {
    opacity: 0.35;
    transform: scaleX(1);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.45);
    background-color: var(--olive);
  }
}

.measurement-rail i:nth-child(even) {
  width: 6px;
}

.measurement-rail i:nth-child(odd) {
  width: 12px;
}

/* Grid de Metadados e Título Sapientia */
.plate-content-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 4px 16px;
}

.plate-col {
  display: flex;
  align-items: center;
}

.plate-col.col-left {
  justify-content: flex-start;
  gap: 28px;
}

.plate-col.col-right {
  justify-content: flex-end;
  gap: 28px;
}

.plate-col.col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}

/* Blocos de Texto Catalográfico */
.meta-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-machine);
  font-size: var(--micro);
  letter-spacing: 0.14em;
  color: var(--ink);
}

.meta-tag {
  font-weight: 500;
}

.meta-sub {
  font-size: 6px;
  color: var(--ink-soft);
}

.celestial-pair-stacked svg {
  width: 20px;
  height: 10px;
  color: var(--ink);
  transform-origin: center;
  transform-box: fill-box;
  animation: celestialPulse 3.4s ease-in-out infinite alternate;
}

@keyframes celestialPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.65;
  }
  100% {
    transform: scale(1.12);
    opacity: 1;
  }
}

.text-block {
  display: flex;
  flex-direction: column;
  font-family: var(--font-meta);
  font-size: var(--meta);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.15;
  color: var(--ink);
}

.sub-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-machine);
  font-size: var(--caption);
  letter-spacing: 0.14em;
  color: var(--ink);
}

.thinker-meta {
  font-size: 7px;
  letter-spacing: 0.16em;
}

/* Título Monumental Sapientia */
.display-serif-bottom {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--display-lg);
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 0.9;
  user-select: none;
}

.plate-motto {
  font-family: var(--font-machine);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 500;
}

.registration-cross {
  margin-top: 4px;
  color: var(--ink);
}

.registration-cross svg {
  width: 14px;
  height: 14px;
  transform-origin: center;
  transform-box: fill-box;
  animation: crosshairSpin 20s linear infinite;
}

@keyframes crosshairSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.arrowhead-center, .arrowhead {
  font-size: 7px;
  color: var(--ink);
  margin-top: 2px;
  display: inline-block;
  animation: arrowBreathing 2.4s ease-in-out infinite alternate;
}

@keyframes arrowBreathing {
  0% {
    transform: translateY(0);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

/* Formatação e Estabilidade do Scramble Loop */
[data-scramble] {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.display-serif-bottom[data-scramble] {
  min-height: 1em;
  min-width: 4.5ch;
  text-align: center;
}

.scramble-glyph {
  opacity: 0.8;
  color: var(--olive-dark);
}

/* ==========================================================================
   CHASSIS DO CONSELHO: MESA DE OPERAÇÃO E DELIBERAÇÃO
   ========================================================================== */

.council-chassis {
  width: 100%;
  background-color: var(--paper-hi);
  border: 1px solid var(--rule);
  padding: 36px 40px;
  box-shadow: 0 4px 24px rgba(62, 61, 55, 0.04);
}

.specimen-header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.specimen-tag {
  font-family: var(--font-machine);
  font-size: var(--caption);
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.specimen-heading {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 6px;
}

.specimen-desc {
  font-family: var(--font-meta);
  font-size: var(--small);
  color: var(--ink-soft);
  max-width: 680px;
}

/* Formulário com estilo impresso (Printed Blank) */
.printed-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-sheet {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule-fine);
}

.sheet-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.sheet-title {
  font-family: var(--font-meta);
  font-size: var(--small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.sheet-subtitle {
  font-family: var(--font-meta);
  font-size: var(--caption);
  color: var(--ink-soft);
  margin-top: 2px;
}

.char-counter {
  font-family: var(--font-machine);
  font-size: var(--caption);
  color: var(--ink-faint);
}

.count-seal {
  font-family: var(--font-machine);
  font-size: var(--caption);
  padding: 2px 8px;
  border: 1px solid var(--rule);
  background-color: var(--paper);
  color: var(--ink);
  letter-spacing: 0.1em;
}

/* Área de Texto Impressa */
.printed-textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px 14px;
  background-color: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-meta);
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color var(--fast) ease;
}

.printed-textarea:focus-visible {
  outline: 1px solid var(--olive-dark);
  outline-offset: 2px;
  border-color: var(--ink);
}

.printed-textarea::placeholder {
  color: var(--ink-faint);
  font-style: italic;
}

/* Sugestões Rápidas */
.examples-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.examples-tag {
  font-family: var(--font-machine);
  font-size: 9px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.examples-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.specimen-chip {
  background: transparent;
  border: 1px solid var(--rule-faint);
  padding: 4px 10px;
  font-family: var(--font-meta);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 260ms cubic-bezier(0.2, 0, 0, 1),
              color 260ms cubic-bezier(0.2, 0, 0, 1),
              border-color 260ms cubic-bezier(0.2, 0, 0, 1),
              transform 260ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 260ms cubic-bezier(0.2, 0, 0, 1);
}

.specimen-chip:hover {
  background-color: var(--paper-shadow);
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(62, 61, 55, 0.08);
}

.specimen-chip:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(62, 61, 55, 0.04);
  transition-duration: 70ms;
}

/* Linha de Seletores Táticos */
.tactical-selectors-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 6px;
}

.selector-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-family: var(--font-machine);
  font-size: var(--caption);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.printed-select {
  padding: 8px 12px;
  background-color: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-meta);
  font-size: var(--small);
  cursor: pointer;
  outline: none;
}

.printed-select:focus-visible {
  outline: 1px solid var(--olive-dark);
  outline-offset: 2px;
}

/* Grade de Pensadores / Estampilhas Filosóficas Monumentais */
.members-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.member-card {
  display: flex;
  flex-direction: column;
  background-color: #faf7f0;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(45, 40, 30, 0.04);
  padding: 0;
}

.member-card:hover {
  border-color: #8c6833;
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(45, 40, 30, 0.12);
}

.member-card:hover .member-bust {
  transform: scale(1.04) translateY(-3px);
  filter: drop-shadow(0 14px 22px rgba(35, 30, 20, 0.25));
}

/* Estado Selecionado do Card */
.member-card[aria-pressed="true"],
.member-card.selected {
  border-color: #9d7738;
  box-shadow: 0 10px 26px rgba(157, 119, 56, 0.2), 0 0 0 1.5px #9d7738;
  background-color: #fdfbf7;
}

.member-card[aria-pressed="true"]::before,
.member-card.selected::before {
  display: none;
}

/* Área do Busto Esculpido Transparente */
.bust-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px 6px;
  background: radial-gradient(circle at 50% 50%, rgba(215, 200, 175, 0.3) 0%, rgba(248, 245, 238, 0.1) 68%, transparent 100%);
  overflow: hidden;
}

.member-bust {
  max-height: 180px;
  max-width: 94%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(40, 35, 25, 0.16));
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  user-select: none;
}

.member-avatar-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #eae2d1;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Indicador de Seleção / Selo Heráldico */
.bust-wrapper .member-checkbox {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(80, 70, 55, 0.28);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  color: var(--ink-soft);
  font-family: var(--font-machine);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.member-card:hover .bust-wrapper .member-checkbox {
  border-color: #9d7738;
  color: #9d7738;
}

.member-card[aria-pressed="true"] .bust-wrapper .member-checkbox,
.member-card.selected .bust-wrapper .member-checkbox {
  background-color: #9d7738;
  border-color: #9d7738;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(157, 119, 56, 0.4);
}

/* Tarja Inferior / Placa Monumental do Pedestal */
.member-plaque {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, #f7f3ea 0%, #ede6d7 100%);
  border-top: 1px solid var(--rule);
  text-align: center;
  transition: background 0.25s ease, color 0.25s ease;
  position: relative;
}

.member-plaque::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157, 119, 56, 0.35), transparent);
}

.member-card[aria-pressed="true"] .member-plaque,
.member-card.selected .member-plaque {
  background: linear-gradient(180deg, #2b2722 0%, #1c1a17 100%);
  border-top-color: #9d7738;
}

.member-name {
  font-family: var(--font-display), 'Bodoni Moda', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.member-card[aria-pressed="true"] .member-name,
.member-card.selected .member-name {
  color: #f7edd6;
}

.member-domain {
  font-family: var(--font-machine), 'DM Mono', monospace;
  font-size: 9px;
  color: #6b6355;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.member-card[aria-pressed="true"] .member-domain,
.member-card.selected .member-domain {
  color: #c9bda4;
}

/* Barra de Lançamento */
.protocol-launch-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: var(--paper);
  border: 1px solid var(--rule);
  margin-top: 8px;
}

.protocol-tag {
  font-family: var(--font-machine);
  font-size: var(--caption);
  letter-spacing: 0.15em;
  color: var(--ink-soft);
}

.protocol-estimate {
  font-family: var(--font-meta);
  font-size: var(--small);
  color: var(--ink);
  margin-top: 2px;
}

.btn-launch-council {
  background-color: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 10px 24px;
  font-family: var(--font-machine);
  font-size: var(--small);
  letter-spacing: 0.14em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background-color 320ms cubic-bezier(0.2, 0, 0, 1),
              border-color 320ms cubic-bezier(0.2, 0, 0, 1),
              transform 320ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 320ms cubic-bezier(0.2, 0, 0, 1);
}

.btn-launch-council .btn-arrow {
  display: inline-block;
  transition: transform 300ms cubic-bezier(0.2, 0, 0, 1);
}

.btn-launch-council:hover:not(:disabled) {
  background-color: var(--olive-dark);
  border-color: var(--olive-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(62, 61, 55, 0.22);
}

.btn-launch-council:hover:not(:disabled) .btn-arrow {
  transform: translateX(5px);
}

.btn-launch-council:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(62, 61, 55, 0.12);
  transition-duration: 80ms;
}

.btn-launch-council:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.footnote-bar {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-machine);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  padding: 6px 0;
}

/* ==========================================================================
   SEÇÃO DE SESSÃO / DELIBERAÇÃO ATIVA
   ========================================================================== */

.session-sheet-header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.session-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.session-badge {
  font-family: var(--font-machine);
  font-size: var(--caption);
  letter-spacing: 0.15em;
  color: var(--ink-soft);
}

.session-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-machine);
  font-size: var(--small);
  color: var(--ink);
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--olive);
  animation: pulse-dot 1.4s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

.session-display-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 12px;
}

.session-toolbar {
  display: flex;
  gap: 12px;
}

.btn-editorial-cancel {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 6px 14px;
  font-family: var(--font-machine);
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 260ms cubic-bezier(0.2, 0, 0, 1),
              color 260ms cubic-bezier(0.2, 0, 0, 1),
              border-color 260ms cubic-bezier(0.2, 0, 0, 1),
              transform 260ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 260ms cubic-bezier(0.2, 0, 0, 1);
}

.btn-editorial-cancel:hover {
  background-color: #f5e4e4;
  color: #8c2a2a;
  border-color: #c98b8b;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(140, 42, 42, 0.1);
}

.btn-editorial-cancel:active {
  transform: translateY(0);
  box-shadow: none;
  transition-duration: 80ms;
}

.btn-editorial-export {
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 6px 14px;
  font-family: var(--font-machine);
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 260ms cubic-bezier(0.2, 0, 0, 1),
              color 260ms cubic-bezier(0.2, 0, 0, 1),
              border-color 260ms cubic-bezier(0.2, 0, 0, 1),
              transform 260ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 260ms cubic-bezier(0.2, 0, 0, 1);
}

.btn-editorial-export:hover {
  background-color: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(62, 61, 55, 0.12);
}

.btn-editorial-export:active {
  transform: translateY(0);
  box-shadow: none;
  transition-duration: 80ms;
}

/* Indicador das 4 Fases do Protocolo */
.protocol-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.step-item {
  padding: 10px;
  border: 1px solid var(--rule-faint);
  background-color: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0.5;
  transition: opacity var(--base) ease;
}

.step-item.active {
  opacity: 1;
  border-color: var(--ink);
  background-color: var(--paper-shadow);
}

.step-code {
  font-family: var(--font-machine);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.step-label {
  font-family: var(--font-meta);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

/* Saídas dos Membros / Cartas de Perspectiva */
.session-outputs-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.output-card {
  flex-shrink: 0 !important;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--rule);
  background-color: var(--paper-hi);
  border-radius: 4px;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(22, 20, 17, 0.04), 0 1px 2px rgba(22, 20, 17, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 12px;
}

.output-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(22, 20, 17, 0.07);
}

.output-summary {
  padding: 14px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #fdfbf7 0%, #f7f3eb 100%);
  user-select: none;
  border-bottom: 1px solid var(--rule-faint);
  border-radius: 4px 4px 0 0;
  transition: background-color 0.2s ease;
}

.output-summary:hover {
  background: #f4ede0;
}

.output-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.output-member-avatar-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  overflow: hidden;
  background-color: var(--paper-shadow);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.output-member-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.output-header-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.output-member-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.output-round-pill {
  font-family: var(--font-machine);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.output-expand-hint {
  font-family: var(--font-machine);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.output-card > div:not(.output-summary),
.output-card .output-body,
.output-card .markdown-rendered,
.output-body,
.markdown-rendered {
  padding: 28px 44px 34px 44px !important; /* MARGEM INTERNA GENEROSA DE 44PX */
  background-color: #fdfcf9 !important;
  font-family: var(--font-meta);
  font-size: 14.5px;
  line-height: 1.85;
  color: #2b2823;
  border-top: 1px solid var(--rule-faint);
  box-sizing: border-box !important;
  height: auto !important;
  min-height: fit-content !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Evita duplicação de padding caso haja divs aninhadas */
.output-body .markdown-rendered,
.markdown-rendered .output-body {
  padding: 0 !important;
  background-color: transparent !important;
  border-top: none !important;
}

/* Acta Magna / Veredito */
.verdict-acta {
  border: 2px solid var(--ink);
  background-color: var(--paper-hi);
  padding: 28px 32px;
  position: relative;
}

.acta-header {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.acta-seal {
  font-size: 24px;
}

.acta-label {
  font-family: var(--font-machine);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.acta-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
}

.acta-content {
  font-family: var(--font-meta);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

/* Formatação de Markdown Dialético e Editorial */
.markdown-rendered {
  color: #2c2824;
}

.markdown-rendered h2, 
.markdown-rendered h3, 
.markdown-rendered h4 {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
}

.markdown-rendered h2 {
  font-size: 18px;
  margin: 20px 0 10px;
}

.markdown-rendered h3 {
  font-size: 16px;
  margin: 18px 0 8px;
}

.markdown-rendered h4 {
  font-size: 14.5px;
  margin: 14px 0 6px;
}

.markdown-rendered p {
  margin-bottom: 14px;
  line-height: 1.8;
}

/* Títulos de seção do pensador (ex: ◈ Essential Question, ◈ Terrain Map) */
.markdown-rendered .dialectical-section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 26px 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(157, 119, 56, 0.45);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.markdown-rendered .dialectical-section-title:first-child {
  margin-top: 2px;
}

.markdown-rendered .section-bullet {
  color: var(--gold);
  font-size: 13px;
  font-style: normal;
}

/* Fallback para títulos de seções gerados como itálico isolado (ex: *Confrontando Afirmações*) */
.markdown-rendered p:has(> em:only-child),
.output-body p:has(> em:only-child),
.markdown-rendered p:has(> strong:only-child),
.output-body p:has(> strong:only-child) {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(157, 119, 56, 0.45);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.markdown-rendered p:has(> em:only-child)::before,
.output-body p:has(> em:only-child)::before,
.markdown-rendered p:has(> strong:only-child)::before,
.output-body p:has(> strong:only-child)::before {
  content: "◈";
  color: var(--gold);
  font-style: normal;
  font-size: 13px;
}

/* Callout nobre de pergunta / dilema reflexivo */
.markdown-rendered .question-callout {
  margin: 12px 0 20px 0;
  padding: 16px 22px;
  background: linear-gradient(90deg, rgba(235, 222, 196, 0.35) 0%, rgba(250, 248, 242, 0.7) 100%);
  border-left: 3.5px solid var(--gold);
  border-radius: 0 4px 4px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.7;
  color: #3b352a;
  box-shadow: inset 0 0 12px rgba(157, 119, 56, 0.04);
}

/* Listas dialéticas refinadas com recuo e marcadores */
.markdown-rendered .dialectical-list {
  list-style: none;
  margin: 12px 0 18px 0;
  padding-left: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.markdown-rendered .dialectical-list-item {
  position: relative;
  padding-left: 24px;
  line-height: 1.75;
  color: #312e29;
}

.markdown-rendered .dialectical-list-item::before {
  content: "◆";
  position: absolute;
  left: 4px;
  top: 1px;
  color: var(--gold);
  font-size: 9px;
}

.markdown-rendered .item-lead-key {
  color: var(--ink);
  font-weight: 600;
  margin-right: 4px;
}

/* ==========================================================================
   MATERIAL DESIGN 3 — COPLANAR SIDE SHEET & CONTAINER
   "Components like a side sheet can also enter and exit at the same elevation 
   as the main content. Coplanar sheets shrink the available area for content."
   ========================================================================== */

.app-coplanar-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--paper);
}

/* Viewport Principal Coplanar (encolhe a área disponível no mesmo plano) */
.coplanar-main-viewport {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  /* Transição Coplanar M3 de encolhimento e expansão */
  transition: width var(--m3-duration-enter) var(--m3-easing-emphasized),
              max-width var(--m3-duration-enter) var(--m3-easing-emphasized),
              transform var(--m3-duration-enter) var(--m3-easing-emphasized);
  will-change: width, max-width;
}

/* Side Sheet Coplanar: Mesma elevação (elevation 0 / coplanar), sem modal backdrop */
.history-drawer.m3-coplanar-sheet {
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
  width: 0;
  max-width: 0;
  min-width: 0;
  overflow: hidden;
  background-color: var(--paper);
  border-right: 0px solid var(--rule);
  opacity: 0;
  visibility: hidden;
  box-shadow: none;
  z-index: 100;
  /* Transição M3 na saída (Accelerate) */
  transition: width var(--m3-duration-exit) var(--m3-easing-emphasized-accelerate),
              max-width var(--m3-duration-exit) var(--m3-easing-emphasized-accelerate),
              min-width var(--m3-duration-exit) var(--m3-easing-emphasized-accelerate),
              opacity var(--m3-duration-exit) var(--m3-easing-emphasized-accelerate),
              visibility var(--m3-duration-exit) var(--m3-easing-emphasized-accelerate),
              border-right-width var(--m3-duration-exit) var(--m3-easing-emphasized-accelerate);
  will-change: width, opacity, visibility;
}

/* Estado Aberto (Drawer Ativo): Side Sheet expande e encolhe o conteúdo */
.app-coplanar-container.drawer-open .history-drawer.m3-coplanar-sheet {
  width: var(--m3-sheet-width);
  max-width: var(--m3-sheet-width);
  min-width: var(--m3-sheet-width);
  opacity: 1;
  visibility: visible;
  border-right: 1px solid var(--rule);
  /* Transição M3 na entrada (Emphasized Decelerate) */
  transition: width var(--m3-duration-enter) var(--m3-easing-emphasized),
              max-width var(--m3-duration-enter) var(--m3-easing-emphasized),
              min-width var(--m3-duration-enter) var(--m3-easing-emphasized),
              opacity var(--m3-duration-enter) var(--m3-easing-emphasized),
              visibility var(--m3-duration-enter) var(--m3-easing-emphasized),
              border-right-width var(--m3-duration-enter) var(--m3-easing-emphasized);
}

/* Feedback do botão de controle quando a gaveta está ativa */
.app-coplanar-container.drawer-open #btn-history-drawer {
  background-color: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* O conteúdo interno mantém largura fixa estável durante o deslize */
.history-drawer.m3-coplanar-sheet .drawer-inner {
  width: var(--m3-sheet-width);
  min-width: var(--m3-sheet-width);
  box-sizing: border-box;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.micro-tag {
  font-family: var(--font-machine);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.drawer-title-group h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
}

.drawer-close {
  background: transparent;
  border: 1px solid var(--rule);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: background-color 260ms cubic-bezier(0.2, 0, 0, 1),
              color 260ms cubic-bezier(0.2, 0, 0, 1),
              border-color 260ms cubic-bezier(0.2, 0, 0, 1),
              transform 260ms cubic-bezier(0.2, 0, 0, 1);
}

.drawer-close:hover {
  background-color: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: rotate(90deg);
}

.drawer-close:active {
  transform: rotate(90deg) scale(0.92);
  transition-duration: 70ms;
}

.history-nav {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Coreografia M3 dos registros no histórico */
.history-nav button {
  background: var(--paper-hi);
  border: 1px solid var(--rule-faint);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--m3-duration-exit) var(--m3-easing-emphasized-accelerate),
              transform 260ms cubic-bezier(0.2, 0, 0, 1),
              background-color 260ms cubic-bezier(0.2, 0, 0, 1),
              border-color 260ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 260ms cubic-bezier(0.2, 0, 0, 1);
}

.app-coplanar-container.drawer-open .history-nav button {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--m3-duration-enter) var(--m3-easing-emphasized),
              transform 260ms cubic-bezier(0.2, 0, 0, 1),
              background-color 260ms cubic-bezier(0.2, 0, 0, 1),
              border-color 260ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 260ms cubic-bezier(0.2, 0, 0, 1);
}

/* Efeito stagger M3 nos itens ao abrir */
.app-coplanar-container.drawer-open .history-nav button:nth-child(1) { transition-delay: 80ms; }
.app-coplanar-container.drawer-open .history-nav button:nth-child(2) { transition-delay: 130ms; }
.app-coplanar-container.drawer-open .history-nav button:nth-child(3) { transition-delay: 180ms; }
.app-coplanar-container.drawer-open .history-nav button:nth-child(4) { transition-delay: 230ms; }
.app-coplanar-container.drawer-open .history-nav button:nth-child(5) { transition-delay: 280ms; }
.app-coplanar-container.drawer-open .history-nav button:nth-child(n+6) { transition-delay: 320ms; }

.history-nav button:hover {
  background-color: #ebe5d7;
  border-color: var(--ink);
  transform: translateX(4px);
  box-shadow: 0 3px 10px rgba(62, 61, 55, 0.08);
}

.history-nav button:active {
  transform: translateX(2px);
  box-shadow: 0 1px 3px rgba(62, 61, 55, 0.04);
  transition-duration: 70ms;
}

.history-nav button strong {
  font-family: var(--font-meta);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.history-nav button small {
  font-family: var(--font-machine);
  font-size: 8px;
  color: var(--ink-soft);
}

/* Responsividade Mobile para Side Sheet */
@media (max-width: 768px) {
  :root {
    --m3-sheet-width: 88vw;
  }
  .history-drawer.m3-coplanar-sheet {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
  }
}

/* ==========================================================================
   MODAL DE CONFIGURAÇÕES DO SISTEMA
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(62, 61, 55, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background-color: var(--paper);
  border: 1px solid var(--ink);
  padding: 28px;
  box-shadow: 0 12px 32px rgba(62, 61, 55, 0.18);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.modal-badge {
  font-family: var(--font-machine);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--olive-dark);
}

.modal-title-group h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
}

.modal-close {
  background: transparent;
  border: 1px solid var(--rule);
  width: 26px;
  height: 26px;
  cursor: pointer;
  color: var(--ink);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-intro {
  font-family: var(--font-meta);
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label-heading {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-machine);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.link-helper {
  color: var(--olive-dark);
  text-decoration: none;
}

.input-password-wrapper {
  display: flex;
  border: 1px solid var(--rule);
  background-color: var(--paper-hi);
}

.input-password-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 10px;
  font-family: var(--font-machine);
  font-size: 11px;
  color: var(--ink);
}

.btn-eye {
  background: transparent;
  border: none;
  padding: 0 10px;
  cursor: pointer;
}

.field-hint {
  font-family: var(--font-machine);
  font-size: 8px;
  color: var(--ink-faint);
}

.custom-select {
  padding: 8px 10px;
  background-color: var(--paper-hi);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-meta);
  font-size: 11px;
}

.feedback-banner {
  padding: 8px 12px;
  font-family: var(--font-machine);
  font-size: 10px;
  border: 1px solid var(--rule);
  background-color: var(--paper-shadow);
}

.feedback-banner.success {
  border-color: var(--olive-dark);
  color: var(--olive-dark);
}

.feedback-banner.error {
  border-color: #8c2a2a;
  color: #8c2a2a;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.btn-editorial-secondary {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 6px 14px;
  font-family: var(--font-machine);
  font-size: 10px;
  cursor: pointer;
  transition: background-color 260ms cubic-bezier(0.2, 0, 0, 1),
              color 260ms cubic-bezier(0.2, 0, 0, 1),
              border-color 260ms cubic-bezier(0.2, 0, 0, 1),
              transform 260ms cubic-bezier(0.2, 0, 0, 1);
}

.btn-editorial-secondary:hover {
  background-color: var(--paper-shadow);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn-editorial-secondary:active {
  transform: translateY(0);
  transition-duration: 70ms;
}

.btn-editorial-primary {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
  padding: 6px 18px;
  font-family: var(--font-machine);
  font-size: 10px;
  cursor: pointer;
  transition: background-color 260ms cubic-bezier(0.2, 0, 0, 1),
              border-color 260ms cubic-bezier(0.2, 0, 0, 1),
              transform 260ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 260ms cubic-bezier(0.2, 0, 0, 1);
}

.btn-editorial-primary:hover {
  background-color: var(--olive-dark);
  border-color: var(--olive-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(62, 61, 55, 0.16);
}

.btn-editorial-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(62, 61, 55, 0.08);
  transition-duration: 70ms;
}

/* Banner de Erro */
.error-banner {
  width: 100%;
  max-width: 1280px;
  margin: 12px 20px 0;
  padding: 10px 16px;
  border: 1px solid #8c2a2a;
  background-color: #faefef;
  color: #8c2a2a;
  font-family: var(--font-machine);
  font-size: 11px;
}

/* Rodapé Final */
.editorial-page-footer {
  width: 100%;
  max-width: 1280px;
  padding: 24px 20px 48px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-machine);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.footer-line {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
}

.footer-sub {
  font-family: var(--font-meta);
  font-size: 10px;
  color: var(--ink-faint);
  font-style: italic;
}

/* ==========================================================================
   RESPONSIVIDADE (DESIGN.MD - SEÇÃO 20)
   ========================================================================== */

@media (max-width: 900px) {
  .masthead-title-row {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }
  .title-side-col {
    justify-content: center !important;
  }
  .plate-content-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .plate-col.col-left, .plate-col.col-right {
    justify-content: center;
  }
  .tactical-selectors-row {
    grid-template-columns: 1fr;
  }
  .protocol-steps {
    grid-template-columns: 1fr 1fr;
  }
  .protocol-launch-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

/* ==========================================================================
   GALERIA DOS PENSADORES & CONHECER O CONSELHO (ANIMADA & EDITORIAL)
   ========================================================================== */

/* Botão Conhecer o Conselho no Topo */
.btn-explore-council {
  cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 5px 12px;
  font-family: var(--font-machine);
  font-size: 10px;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  transition: all 260ms cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 2px 6px rgba(62, 61, 55, 0.05);
}

.btn-explore-council:hover {
  background: var(--paper-hi);
  border-color: var(--gold);
  color: #1a1814;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200, 174, 125, 0.35);
}

.btn-explore-council:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(62, 61, 55, 0.1);
}

/* Painel de Exploração da Hero (Home) */
.hero-explore-panel {
  background: rgba(244, 241, 233, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 12px 20px 16px;
  display: flex;
  flex-direction: column;
}

.explore-header-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.explore-filter-btn {
  background: transparent;
  border: 1px solid var(--rule-faint);
  color: var(--ink-soft);
  font-family: var(--font-machine);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 220ms ease;
  user-select: none;
}

.explore-filter-btn:hover {
  border-color: var(--gold);
  color: var(--ink);
  background-color: rgba(200, 174, 125, 0.1);
}

.explore-filter-btn.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 2px 6px rgba(62, 61, 55, 0.2);
}

.explore-scroll-wrapper {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 8px 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Scrollbar estilizada */
.explore-scroll-wrapper::-webkit-scrollbar {
  width: 6px;
}
.explore-scroll-wrapper::-webkit-scrollbar-track {
  background: var(--paper-edge);
}
.explore-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--stone);
}
.explore-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.explore-masthead-intro {
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
  padding: 4px 16px 12px;
  border-bottom: 1px solid var(--rule-fine);
}

.explore-hero-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  font-style: italic;
  color: var(--ink);
  margin: 4px 0 6px;
  letter-spacing: -0.01em;
}

.explore-hero-desc {
  font-family: var(--font-meta);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto;
}

/* Grid de Cards dos Pensadores */
.explore-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  width: 100%;
  padding-bottom: 20px;
}

/* Card Individual do Pensador */
.explore-thinker-card {
  background: linear-gradient(180deg, #fbf9f4 0%, #f4f0e6 100%);
  border: 1px solid var(--rule-faint);
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: transform 320ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 320ms cubic-bezier(0.2, 0, 0, 1),
              border-color 320ms cubic-bezier(0.2, 0, 0, 1),
              background 320ms ease;
  box-shadow: 0 4px 14px rgba(62, 61, 55, 0.05);
  user-select: none;
  opacity: 0;
  animation: cardFadeUp 420ms cubic-bezier(0.2, 0, 0, 1) forwards;
}

@keyframes cardFadeUp {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.explore-thinker-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--gold);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(62, 61, 55, 0.16), 0 0 16px rgba(200, 174, 125, 0.25);
  z-index: 5;
}

.explore-thinker-card:active {
  transform: translateY(-2px) scale(1.01);
  transition-duration: 80ms;
}

/* Moldura do Busto */
.explore-bust-frame {
  width: 130px;
  height: 130px;
  position: relative;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.explore-bust-frame::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(200, 174, 125, 0.22) 0%, transparent 72%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
}

.explore-thinker-card:hover .explore-bust-frame::before {
  opacity: 1;
}

.explore-thinker-bust {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(45, 43, 37, 0.25));
  transition: transform 380ms cubic-bezier(0.2, 0, 0, 1);
}

.explore-thinker-card:hover .explore-thinker-bust {
  transform: scale(1.07);
}

.explore-period-pill {
  font-family: var(--font-machine);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--olive-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.explore-thinker-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.2;
}

.explore-thinker-domain {
  font-family: var(--font-machine);
  font-size: 10px;
  color: var(--earth);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.explore-thinker-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.35;
  margin-bottom: 12px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.explore-card-footer {
  width: 100%;
  padding-top: 8px;
  border-top: 1px solid var(--rule-fine);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.explore-card-badge {
  font-family: var(--font-machine);
  font-size: 8.5px;
  color: var(--gold);
  letter-spacing: 0.12em;
  font-weight: 600;
}

.explore-card-cta {
  font-family: var(--font-meta);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 200ms ease, transform 200ms ease;
}

.explore-thinker-card:hover .explore-card-cta {
  color: #8c6a28;
  transform: translateX(2px);
}

/* ==========================================================================
   MODAL MONUMENTAL DO PENSADOR (DOSSIÊ PROFUNDO DA MENTE)
   ========================================================================== */

.thinker-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(26, 24, 20, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 340ms cubic-bezier(0.2, 0, 0, 1),
              visibility 0ms 340ms;
}

.thinker-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 340ms cubic-bezier(0.2, 0, 0, 1),
              visibility 0ms 0ms;
}

.thinker-modal-dialog {
  background: var(--paper);
  border: 1px solid var(--gold);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 32px rgba(200, 174, 125, 0.28);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(24px) scale(0.96);
  transition: transform 380ms cubic-bezier(0.2, 0, 0, 1);
}

.thinker-modal-backdrop.open .thinker-modal-dialog {
  transform: translateY(0) scale(1);
}

.thinker-modal-header {
  padding: 18px 24px;
  background: linear-gradient(180deg, #fcfaf3 0%, #f4f0e6 100%);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.thinker-modal-avatar-frame {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, rgba(200, 174, 125, 0.25) 0%, transparent 70%);
}

.thinker-modal-bust {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.thinker-modal-titles {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.thinker-modal-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.thinker-micro-badge {
  font-family: var(--font-machine);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--olive-dark);
  text-transform: uppercase;
  background: rgba(105, 107, 88, 0.12);
  padding: 2px 6px;
}

.thinker-micro-domain {
  font-family: var(--font-machine);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--earth);
}

.thinker-modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}

.thinker-modal-epithet {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.thinker-modal-body {
  padding: 22px 26px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Citação Destacada */
.thinker-quote-box {
  background: #fbf9f4;
  border-left: 3px solid var(--gold);
  border-top: 1px solid var(--rule-fine);
  border-right: 1px solid var(--rule-fine);
  border-bottom: 1px solid var(--rule-fine);
  padding: 14px 18px 14px 22px;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.thinker-quote-mark {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.7;
}

.thinker-quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}

/* Grid com os 4 Pilares da Mente */
.thinker-dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 680px) {
  .thinker-dossier-grid {
    grid-template-columns: 1fr;
  }
}

.thinker-dossier-card {
  background: var(--paper-hi);
  border: 1px solid var(--rule-faint);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(62, 61, 55, 0.03);
  transition: border-color 200ms ease;
}

.thinker-dossier-card:hover {
  border-color: var(--stone);
}

.dossier-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--rule-fine);
  padding-bottom: 6px;
}

.dossier-card-icon {
  font-size: 15px;
}

.dossier-card-header h4 {
  font-family: var(--font-machine);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

.dossier-card-text {
  font-family: var(--font-meta);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.dossier-card-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dossier-step-item {
  font-family: var(--font-meta);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.dossier-step-bullet {
  color: var(--gold);
  font-family: var(--font-machine);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.thinker-modal-footer {
  padding: 14px 24px;
  background-color: var(--paper-hi);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
