@font-face {
  font-family: 'HaloDomasSolid';
  src: url('assets/fonts/halo_domas/Halo Domas Solid.ttf') format('truetype');
  font-display: swap;
}

:root {
  /* Identidade Editorial Nosso Bias — Vinho Acadêmico (#470623) + Papel Editorial */
  --primary: #470623;
  --primary-hover: #5f0930;
  --primary-soft: #f9eef2;
  --primary-border: rgba(71, 6, 35, 0.22);
  --brass: #9a7428;
  --brass-soft: rgba(154, 116, 40, 0.14);

  --bg-page: #faf8f5;
  --bg-surface: #ffffff;
  --bg-subtle: #f3efe9;
  --border: #e6dfd6;
  --border-strong: #d3c9bc;

  --text-main: #181316;
  --text-muted: #52484d;
  --text-dim: #75696f;

  /* Mapeamento de variáveis legadas */
  --bg-deep: #faf8f5;
  --bg-navy: #ffffff;
  --bg-card: #ffffff;
  --leather-primary: #470623;
  --leather-dark: #2f0417;
  --leather-glow: #7a1440;
  --gold-dark: #75696f;
  --gold: #9a7428;
  --gold-bright: #470623;
  --gold-light: #52484d;
  --border-gold: #e6dfd6;

  --success: #15803d;
  --success-bg: #f1fbf4;
  --success-border: #bbf7d0;
  --warning: #a16207;
  --warning-bg: #fefce8;
  --warning-border: #fde047;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;

  --shadow-sm: 0 1px 2px rgba(71, 6, 35, 0.04), 0 1px 3px rgba(24, 19, 22, 0.04);
  --shadow-md: 0 4px 12px rgba(71, 6, 35, 0.06), 0 12px 28px rgba(24, 19, 22, 0.05);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #faf8f6;
  background-image:
    radial-gradient(at 8% 0%, rgba(71, 6, 35, 0.06) 0px, transparent 44%),
    radial-gradient(at 92% 4%, rgba(217, 155, 38, 0.09) 0px, transparent 42%),
    radial-gradient(at 50% 100%, rgba(71, 6, 35, 0.03) 0px, transparent 50%);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.top-accent-strip {
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, #6e143a 60%, var(--brass) 100%);
}

.ui-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* =========================================================
   Header — ResearchRabbit-inspired Clean Bar
   ========================================================= */
.workspace-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(24, 19, 22, 0.08);
}

.workspace-inner {
  max-width: 1220px;
  margin: 0 auto;
  min-height: 76px;
  padding: 1.05rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.workspace-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-icon-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(71, 6, 35, 0.22);
}

.brand-monogram {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: #faf8f5;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(250, 248, 245, 0.22), 0 2px 6px rgba(71, 6, 35, 0.22);
}

.workspace-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.workspace-brand-logo {
  font-family: 'HaloDomasSolid', var(--font-display);
  font-weight: 400;
  font-size: 1.72rem;
  color: var(--primary);
  letter-spacing: 0.01em;
  line-height: 1;
}

.workspace-brand-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.desktop-nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.44rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  transition: all 0.16s ease;
}

.desktop-nav-btn:hover {
  background: #f3f1f5;
  color: var(--text-main);
}

.desktop-nav-btn.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-border);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.header-pill-cta {
  background: #fdf2d0;
  color: var(--primary);
  border: 1px solid rgba(212, 155, 38, 0.45);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.header-pill-cta:hover {
  background: #fbe7ad;
  border-color: rgba(212, 155, 38, 0.75);
}

.header-pill-project {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid rgba(24, 19, 22, 0.12);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.header-pill-project:hover {
  background: #f5f3f7;
}

@media (max-width: 640px) {
  .header-pill-project {
    display: none;
  }
  .header-pill-cta span {
    display: none;
  }
  .header-pill-cta {
    padding: 0.42rem 0.55rem;
  }
}

.icon-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-border);
}

.mini-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--brass);
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #faf8f5;
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.mini-avatar:hover {
  transform: scale(1.05);
}

/* =========================================================
   Main Responsive Web Stage — ResearchRabbit Workspace
   ========================================================= */
.stage-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 1.35rem 1.35rem 4.5rem;
}

/* Top Pastel Hero Banner — Vinho & Dourado */
.rabbit-hero {
  background: linear-gradient(115deg, #f5e6ec 0%, #fbf7f0 48%, #fef0c7 100%);
  border: 1px solid rgba(71, 6, 35, 0.10);
  border-radius: 18px;
  padding: 1.1rem 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 2px 12px rgba(24, 19, 22, 0.035);
}

.rabbit-hero-left {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
}

.rabbit-hero-mascot {
  width: 78px;
  height: 78px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(71, 6, 35, 0.14));
}

.rabbit-hero-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #141115;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 0.2rem;
}

.rabbit-hero-sub {
  font-size: 0.86rem;
  color: #4b444a;
  line-height: 1.45;
  max-width: 560px;
}

.rabbit-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.rabbit-btn-dark {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 0.62rem 1.2rem;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.16s ease;
  box-shadow: 0 2px 8px rgba(71, 6, 35, 0.2);
}

.rabbit-btn-dark:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.rabbit-btn-light {
  background: #ffffff;
  color: #181316;
  border: 1px solid rgba(24, 19, 22, 0.14);
  border-radius: 999px;
  padding: 0.62rem 1.15rem;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.16s ease;
}

.rabbit-btn-light:hover {
  background: #f9fafb;
  border-color: var(--primary-border);
  color: var(--primary);
}

.rabbit-or-sep {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* 2-Column Workspace Grid */
.rabbit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 1.25rem;
  align-items: start;
}

.rabbit-sidebar {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: sticky;
  top: 76px;
}

.rabbit-sidebar-card {
  background: #ffffff;
  border: 1px solid rgba(24, 19, 22, 0.08);
  border-radius: 14px;
  padding: 0.8rem;
  box-shadow: 0 1px 4px rgba(24, 19, 22, 0.025);
}

.rabbit-sidebar-heading {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: #181316;
  padding: 0.1rem 0.35rem 0.45rem;
}

.rabbit-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.rabbit-sidebar-item {
  width: 100%;
  background: #faf9fb;
  border: 1px solid rgba(24, 19, 22, 0.07);
  border-radius: 10px;
  padding: 0.52rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  text-align: left;
  transition: all 0.15s ease;
}

.rabbit-sidebar-item:hover {
  background: #f3eff6;
  color: var(--text-main);
  border-color: rgba(71, 6, 35, 0.16);
}

.rabbit-sidebar-item.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-border);
  font-weight: 700;
}

.rabbit-sidebar-item-left {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-width: 0;
}

.rabbit-sidebar-count {
  font-size: 0.7rem;
  font-weight: 600;
  background: #ffffff;
  color: var(--text-dim);
  border: 1px solid rgba(24, 19, 22, 0.08);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
}

.rabbit-main-panel {
  order: 1;
  background: #ffffff;
  border: 1px solid rgba(24, 19, 22, 0.08);
  border-radius: 16px;
  padding: 1.35rem 1.45rem;
  box-shadow: 0 2px 10px rgba(24, 19, 22, 0.03);
  min-width: 0;
}

@media (max-width: 920px) {
  .rabbit-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.1rem;
  }
  .rabbit-hero-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .rabbit-grid {
    grid-template-columns: 1fr;
  }
  .rabbit-sidebar {
    display: none;
  }
  .rabbit-main-panel {
    padding: 1rem;
  }
}

/* Section Header Banner */
.roleta-banner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.roleta-banner-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  line-height: 1.15;
}

.banner-subtitle {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.wheel-trigger-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(71, 6, 35, 0.2);
  transition: background 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.wheel-trigger-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.wheel-svg.spinning {
  animation: spinWheel 0.85s linear infinite;
}

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

/* =========================================================
   Editorial Cards
   ========================================================= */
.ornate-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem 1.45rem;
  margin-bottom: 1.05rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ornate-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.corner-ornament {
  display: none;
}

/* Controls & Search Panel */
.controls-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.05rem 1.15rem;
  margin-bottom: 1.05rem;
  box-shadow: var(--shadow-sm);
}

.search-row {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

.input-dark {
  flex: 1;
  min-height: 44px;
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-dark:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(71, 6, 35, 0.1);
  background: var(--bg-surface);
}

.input-dark::placeholder {
  color: var(--text-dim);
}

/* Primary CTA Button */
.btn-spin {
  min-height: 44px;
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  padding: 0.55rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.87rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(71, 6, 35, 0.18);
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-spin:hover {
  background: var(--primary-hover);
}

.btn-spin:active {
  transform: scale(0.98);
}

/* Filter Pills */
.filter-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.area-pill {
  font-size: 0.77rem;
  font-weight: 500;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.area-pill:hover {
  border-color: var(--primary-border);
  color: var(--primary);
  background: var(--primary-soft);
}

.area-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.swatch-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.filter-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* Article Typography & Metadata */
.article-area-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.45rem;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 1.48rem;
  font-weight: 700;
  line-height: 1.24;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.article-meta-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.badges-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.citation-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--primary-soft) !important;
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

.year-pill {
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* DOI Bar */
.doi-verify-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 0.48rem 0.78rem;
  margin-bottom: 0.8rem;
  font-size: 0.77rem;
}

.doi-label-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  overflow: hidden;
}

.doi-tag {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.65rem;
  padding: 0.14rem 0.42rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.doi-link {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doi-link:hover {
  text-decoration: underline;
}

.doi-copy-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.24rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.doi-copy-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.article-abstract {
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--text-muted);
  margin-bottom: 0.95rem;
}

.article-links-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.read-full-link {
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.read-full-link:hover {
  text-decoration: underline;
}

/* Nobel Rating */
.nobel-rating-box {
  text-align: center;
  padding: 0.4rem 0;
}

.nobel-rating-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.nobel-medals-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}

.nobel-medal-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  transition: transform 0.15s ease;
}

.nobel-medal-btn:hover {
  transform: scale(1.12);
}

.nobel-medal-btn.inactive {
  filter: grayscale(0.9) opacity(0.35);
}

/* Card Action Bar */
.card-action-bar {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.95rem;
  flex-wrap: wrap;
}

.btn-action {
  flex: 1;
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.btn-action:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.btn-action.done {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* =========================================================
   Profile, Radar, Checklist & Stats
   ========================================================= */
.profile-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-avatar-frame {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--brass);
  background: var(--primary);
  color: #faf8f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.profile-subtitle {
  font-size: 0.86rem;
  color: var(--primary);
  font-weight: 600;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 0.5rem;
}

.radar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bias-callout-pill {
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.68rem 0.35rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-left {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.custom-check {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: #ffffff;
  font-size: 0.74rem;
}

.checklist-item.checked .custom-check {
  background: var(--primary);
  border-color: var(--primary);
}

.classic-work-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.checklist-item.checked .classic-work-title {
  text-decoration: line-through;
  color: var(--text-dim);
}

.classic-work-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* =========================================================
   Subtabs, Fichamentos, Top 4 & Histogram
   ========================================================= */
.subview-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  background: var(--bg-subtle);
  padding: 0.3rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.subview-tab-btn {
  flex: 1;
  min-height: 38px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.subview-tab-btn:hover {
  color: var(--text-main);
}

.subview-tab-btn.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.top4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-top: 0.6rem;
}

.top4-poster {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 116px;
}

.top4-poster:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.top4-poster-spine {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.8);
  margin-bottom: 0.45rem;
}

.top4-poster-year {
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffd166;
}

.top4-poster-title {
  font-family: var(--font-serif);
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0.25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.top4-poster-author {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.88);
}

.histogram-box {
  margin-top: 0.6rem;
  padding: 0.75rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.histogram-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 70px;
  padding-top: 0.4rem;
}

.histogram-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.histogram-bar {
  width: 100%;
  background: var(--primary);
  border-radius: 5px 5px 0 0;
  min-height: 4px;
  opacity: 0.88;
}

.histogram-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

.sci-badge-pill {
  font-size: 0.74rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
}

.sci-badge-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.heart-btn,
.rewatch-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 0.32rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.heart-btn.liked {
  background: var(--primary-soft);
  border-color: var(--primary-border);
  color: var(--primary);
}

.rewatch-btn:hover {
  border-color: var(--primary-border);
  color: var(--primary);
}

.textarea-dark {
  width: 100%;
  min-height: 82px;
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  padding: 0.65rem 0.8rem;
  border-radius: 9px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  resize: vertical;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.stat-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.65rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* =========================================================
   Zeigarnik Progress Strip (Fichar)
   ========================================================= */
.zeigarnik-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brass);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.zeigarnik-bar {
  height: 6px;
  background: var(--bg-subtle);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.zeigarnik-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--brass) 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* =========================================================
   Reference Verification Tab
   ========================================================= */
.verify-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  padding: 0.52rem 0.85rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.verify-step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.verify-step.active {
  color: var(--primary);
  font-weight: 700;
}

.verify-step-line {
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

.verify-status-banner {
  padding: 0.78rem 1rem;
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1.45;
  margin-bottom: 0.95rem;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.verify-status-banner.status-found {
  border-color: var(--success-border);
  background: var(--success-bg);
  color: #14532d;
}

.verify-status-banner.status-not-found {
  border-color: var(--warning-border);
  background: var(--warning-bg);
  color: #713f12;
}

.verify-status-banner.status-error {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: #7f1d1d;
}

.verify-match-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.verify-match-pill.exact {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.verify-match-pill.partial {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning-border);
}

.verify-match-pill.source {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.verify-abnt-box {
  margin-top: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: 9px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  font-size: 0.81rem;
  line-height: 1.55;
  color: var(--text-main);
}

.verify-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.btn-verify-primary {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #ffffff;
  border-radius: 8px;
  min-height: 38px;
  padding: 0.44rem 0.9rem;
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  transition: background 0.15s ease;
}

.btn-verify-primary:hover {
  background: var(--primary-hover);
}

.btn-verify-action {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  border-radius: 8px;
  min-height: 38px;
  padding: 0.44rem 0.82rem;
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  transition: all 0.15s ease;
}

.btn-verify-action:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

/* =========================================================
   Skeleton Loader
   ========================================================= */
.skeleton-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem;
  margin-bottom: 1rem;
}

.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #ede8e0 25%, #f7f4ef 50%, #ede8e0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.1s infinite linear;
  margin-bottom: 0.65rem;
}

.skeleton-line.short { width: 32%; height: 12px; }
.skeleton-line.title { width: 84%; height: 22px; }
.skeleton-line.medium { width: 62%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =========================================================
   Modal Dialog
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 19, 22, 0.52);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: 0 24px 48px rgba(24, 19, 22, 0.22);
}

/* =========================================================
   Toast Feedback
   ========================================================= */
.toast-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary);
  color: #faf8f5;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(71, 6, 35, 0.26);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 200;
}

.toast-banner.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   Mobile Bottom Navigation & Responsiveness
   ========================================================= */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .stage-container {
    padding: 1.1rem 0.9rem 5.5rem;
  }

  .top4-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0.35rem calc(0.55rem + env(safe-area-inset-bottom));
    background: rgba(250, 248, 245, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
  }

  .nav-tab {
    background: transparent;
    border: none;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.67rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
  }

  .nav-tab.active,
  .nav-tab:hover {
    color: var(--primary);
    font-weight: 700;
  }

  .toast-banner {
    bottom: 4.8rem;
  }
}

/* =========================================================
   Animated Running Opossum Loader (Gambá Correndo)
   ========================================================= */
.gamba-loader-card {
  background: linear-gradient(120deg, #fdf7f9 0%, #ffffff 50%, #fef9ea 100%);
  border: 1px solid rgba(71, 6, 35, 0.12);
  border-radius: 16px;
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
}

.gamba-loader-card.compact {
  padding: 0.75rem 1rem;
  flex-direction: row;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 0.45rem;
  margin-bottom: 0.25rem;
}

.gamba-run-stage {
  position: relative;
  width: 210px;
  height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.gamba-loader-card.compact .gamba-run-stage {
  width: 120px;
  height: 54px;
  flex-shrink: 0;
}

.gamba-run-wrapper {
  position: relative;
  width: 146px;
  height: 50px;
  z-index: 2;
  transform-origin: 50% 75%;
  animation: gambaGallop 0.34s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
  will-change: transform;
}

.gamba-loader-card.compact .gamba-run-wrapper {
  width: 96px;
  height: 33px;
}

.gamba-run-sprite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gamba-frame-1 {
  animation: gambaSwap1 0.34s steps(1) infinite;
}

.gamba-frame-2 {
  animation: gambaSwap2 0.34s steps(1) infinite;
}

@keyframes gambaSwap1 {
  0%, 49.9% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes gambaSwap2 {
  0%, 49.9% { opacity: 0; }
  50%, 100% { opacity: 1; }
}

.gamba-run-shadow {
  width: 92px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(71, 6, 35, 0.28) 0%, rgba(71, 6, 35, 0) 72%);
  margin-top: 2px;
  position: relative;
  z-index: 1;
  animation: gambaShadow 0.34s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.gamba-loader-card.compact .gamba-run-shadow {
  width: 60px;
  height: 7px;
}

.gamba-speed-line {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212, 155, 38, 0) 0%, rgba(71, 6, 35, 0.35) 50%, rgba(212, 155, 38, 0.65) 100%);
  z-index: 1;
  pointer-events: none;
  animation: gambaSpeedStreak 0.55s infinite linear;
}

.gamba-speed-line.l1 {
  width: 58px;
  top: 22px;
  animation-delay: 0s;
}

.gamba-speed-line.l2 {
  width: 42px;
  top: 40px;
  animation-delay: -0.22s;
}

.gamba-speed-line.l3 {
  width: 66px;
  top: 56px;
  animation-delay: -0.4s;
}

.gamba-loader-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
}

.gamba-loader-card.compact .gamba-loader-text {
  text-align: left;
  font-size: 0.78rem;
}

@keyframes gambaGallop {
  0% {
    transform: translateY(0px) translateX(-2px) rotate(-3.5deg) scaleX(1.04) scaleY(0.95);
  }
  28% {
    transform: translateY(-12px) translateX(2px) rotate(4deg) scaleX(0.97) scaleY(1.04);
  }
  55% {
    transform: translateY(-14px) translateX(3px) rotate(1deg) scaleX(1.02) scaleY(0.99);
  }
  80% {
    transform: translateY(-2px) translateX(-1px) rotate(-4.5deg) scaleX(1.05) scaleY(0.94);
  }
  100% {
    transform: translateY(0px) translateX(-2px) rotate(-3.5deg) scaleX(1.04) scaleY(0.95);
  }
}

@keyframes gambaShadow {
  0%, 100% {
    transform: scaleX(1.08);
    opacity: 0.85;
  }
  45% {
    transform: scaleX(0.72);
    opacity: 0.35;
  }
}

@keyframes gambaSpeedStreak {
  0% {
    transform: translateX(170px);
    opacity: 0;
  }
  25% {
    opacity: 0.9;
  }
  100% {
    transform: translateX(-190px);
    opacity: 0;
  }
}

/* =========================================================
   Citation Network Explorer (ResearchRabbit-style)
   ========================================================= */
.network-explorer-panel {
  background: linear-gradient(135deg, #fdf8fa 0%, #ffffff 55%, #fefaf0 100%);
  border: 1.5px solid rgba(71, 6, 35, 0.16);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 4px 16px rgba(71, 6, 35, 0.06);
}

.network-explorer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.network-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.network-seed-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.network-seed-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.network-explorer-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.network-graph-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem;
}

.network-graph-svg {
  width: 100%;
  height: auto;
  display: block;
}

.network-graph-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.35rem;
}

.network-selected-card {
  margin-top: 0.7rem;
  padding: 0.75rem;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-radius: 10px;
}

.network-list-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 430px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.network-node-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.network-node-card:hover {
  border-color: var(--primary-border);
  background: #fcfafb;
}

.network-node-card.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.network-node-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.32;
  margin-bottom: 0.2rem;
}

.network-node-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.network-node-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

@media (max-width: 980px) {
  .network-explorer-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Animated 3-Frame Chewing Opossum (Saruê Mastigando Caju)
   ========================================================= */
.gamba-chew-wrapper {
  position: relative;
  width: 72px;
  height: 76px;
  filter: drop-shadow(0 3px 8px rgba(71, 6, 35, 0.14));
  animation: gambaChewBob 1.05s infinite ease-in-out;
}

.gamba-chew-sprite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gamba-chew-1 {
  animation: gambaChewF1 1.05s steps(1) infinite;
}

.gamba-chew-2 {
  animation: gambaChewF2 1.05s steps(1) infinite;
}

.gamba-chew-3 {
  animation: gambaChewF3 1.05s steps(1) infinite;
}

@keyframes gambaChewF1 {
  0%, 27.9% { opacity: 1; }
  28%, 100% { opacity: 0; }
}

@keyframes gambaChewF2 {
  0%, 27.9% { opacity: 0; }
  28%, 59.9% { opacity: 1; }
  60%, 100% { opacity: 0; }
}

@keyframes gambaChewF3 {
  0%, 59.9% { opacity: 0; }
  60%, 100% { opacity: 1; }
}

@keyframes gambaChewBob {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  30% { transform: translateY(-2px) rotate(-2deg); }
  65% { transform: translateY(1px) rotate(1.5deg) scale(1.03, 0.98); }
}

/* =========================================================
   Cajueiro — Multi-Seed Network & Analisar Panel
   ========================================================= */
.cajueiro-seed-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.cajueiro-seed-pill button {
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1;
}

.cajueiro-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 330px;
  gap: 1rem;
  align-items: start;
}

.cajueiro-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
}

.cajueiro-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.cajueiro-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.cajueiro-analyze-card {
  background: linear-gradient(160deg, #fdf8fa 0%, #ffffff 55%, #fef6de 100%);
  border: 1px solid rgba(71, 6, 35, 0.14);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 3px 14px rgba(71, 6, 35, 0.05);
}

.cajueiro-analyze-header {
  text-align: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.65rem;
}

.cajueiro-analyze-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.cajueiro-analyze-sub {
  font-size: 0.77rem;
  color: var(--text-muted);
  line-height: 1.42;
}

.cajueiro-accordion {
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 0;
}

.cajueiro-acc-btn {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.25rem 0;
}

.cajueiro-acc-body {
  padding: 0.45rem 0 0.25rem;
}

.cajueiro-suggested-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem;
}

.cajueiro-kw-pill {
  display: inline-flex;
  align-items: center;
  background: #faf8f6;
  border: 1px solid rgba(71, 6, 35, 0.16);
  border-radius: 999px;
  overflow: hidden;
  transition: all 0.15s ease;
}

.cajueiro-kw-pill.active {
  background: var(--primary);
  border-color: var(--primary);
}

.cajueiro-kw-label {
  background: transparent;
  border: none;
  padding: 0.25rem 0.55rem;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

.cajueiro-kw-pill.active .cajueiro-kw-label {
  color: #ffffff;
}

.cajueiro-kw-dismiss {
  background: transparent;
  border: none;
  padding: 0.25rem 0.45rem 0.25rem 0.1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  cursor: pointer;
}

.cajueiro-kw-pill.active .cajueiro-kw-dismiss {
  color: rgba(255, 255, 255, 0.85);
}

.cajueiro-match-footer {
  margin-top: 0.85rem;
  background: linear-gradient(115deg, #f5e6ec 0%, #fef0c7 100%);
  border: 1px solid rgba(71, 6, 35, 0.14);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}

.cajueiro-match-badge {
  background: var(--primary);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .cajueiro-workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Página Inicial (estilo LAPNE) + Rodapé com GitHub
   ========================================================= */
.about-home-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.about-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--primary-border);
  border-radius: 24px;
  padding: 2rem 2.1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.about-hero-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.about-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.about-hero-desc {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 620px;
}

.about-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  padding-top: 0.2rem;
}

.about-mascot-frame {
  flex-shrink: 0;
  width: 235px;
  height: 235px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.about-mascot-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(71, 6, 35, 0.14));
}

.about-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.15rem;
}

.about-section-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass);
}

.about-section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.15rem;
}

.about-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.about-module-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.about-module-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.about-module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.about-module-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.71rem;
  font-weight: 700;
}

.about-module-meta {
  font-size: 0.71rem;
  color: var(--text-dim);
  font-weight: 600;
}

.about-module-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.about-module-desc {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.about-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.4rem 1.55rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-api-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.2rem;
}

.about-api-pill {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

.app-footer {
  margin-top: 1.8rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: var(--shadow-sm);
}

.app-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.app-footer-nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font: inherit;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.app-footer-nav-btn:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.app-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.github-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  padding: 0.34rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.github-pill-link:hover {
  background: #f2dce5;
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .about-hero-card {
    flex-direction: column;
    text-align: center;
    padding: 1.45rem 1.2rem;
    gap: 1.25rem;
  }

  .about-badge {
    align-self: center;
  }

  .about-hero-cta-row {
    justify-content: center;
  }

  .about-mascot-frame {
    width: 185px;
    height: 185px;
  }

  .about-modules-grid {
    grid-template-columns: 1fr;
  }

  .app-footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

.brand-ia-highlight {
  color: #d49b26;
}

/* =========================================================
   Diretrizes Lista EURECA: Acessibilidade, Foco, Desfazer & LGPD
   ========================================================= */
:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 2px;
}

.a11y-wrapper {
  position: relative;
}

.a11y-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.a11y-trigger-btn:hover,
.a11y-trigger-btn.active {
  background: var(--primary-soft);
  border-color: var(--primary-border);
  color: var(--primary);
}

.a11y-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 265px;
  background: var(--bg-surface);
  border: 1px solid var(--primary-border);
  border-radius: 16px;
  padding: 0.9rem;
  box-shadow: var(--shadow-md);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.a11y-popover-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.a11y-font-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  background: var(--bg-subtle);
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
}

.a11y-font-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
}

.a11y-font-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.a11y-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
}

.a11y-toggle-btn.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.toast-undo-btn {
  margin-left: 0.6rem;
  background: #ffd166;
  color: #181316;
  border: none;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.toast-undo-btn:hover {
  background: #ffe08a;
}

.lgpd-privacy-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* AC9 - Sublinhar links */
body.a11y-underline-links a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* AC11 - Pausar animações */
body.a11y-reduce-motion *,
body.a11y-reduce-motion *::before,
body.a11y-reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* AC4 - Alto Contraste */
body.a11y-high-contrast {
  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --border: #0f172a;
  --border-strong: #0f172a;
  --text-main: #000000;
  --text-muted: #111827;
  --text-dim: #1f2937;
  --primary: #3b001a;
  --primary-soft: #fde8ef;
  --primary-border: #3b001a;
  background: #ffffff !important;
  color: #000000 !important;
}

body.a11y-high-contrast .ornate-card,
body.a11y-high-contrast .about-hero-card,
body.a11y-high-contrast .about-module-card,
body.a11y-high-contrast .about-info-card,
body.a11y-high-contrast .rabbit-sidebar-card,
body.a11y-high-contrast .rabbit-main-panel,
body.a11y-high-contrast .app-footer {
  border-width: 2px !important;
  border-color: #0f172a !important;
}

/* =========================================================
   Auditoria Bibliográfica em Lote (Verificador)
   ========================================================= */
.batch-textarea {
  width: 100%;
  min-height: 155px;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  line-height: 1.55;
  resize: vertical;
}

.batch-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-surface);
}

.batch-audit-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 0.75rem;
}

.batch-audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.79rem;
  text-align: left;
}

.batch-audit-table th {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  padding: 0.55rem 0.7rem;
}

.batch-audit-table td {
  padding: 0.55rem 0.7rem;
  border-top: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-main);
}

.batch-audit-table tr:nth-child(even) td {
  background: var(--bg-page);
}

.batch-status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.16rem 0.58rem;
  font-size: 0.71rem;
  font-weight: 800;
  white-space: nowrap;
}

.batch-status-pill.confirmed {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.batch-status-pill.corrected {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning-border);
}

.batch-status-pill.missing {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.batch-substitutes-box {
  background: var(--bg-subtle);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin-top: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
