/* SPDX-License-Identifier: GPL-3.0-or-later */
/* Athenes — Estilos da Área Inicial / Dashboard (Escrita + Estúdio de Artigos Zotero & PDF estilo Samsung Notes) */

.ath-dashboard {
  width: 100%;
  max-width: none;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 10px 14px 12px 14px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

#athSecaoDashEscrita:not([hidden]),
#athSecaoDashArtigosZotero:not([hidden]) {
  flex: 1 1 0;
  min-height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--ath-line, #E2E8F0);
  border-radius: 18px;
  padding: 20px 24px 28px 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

#athContainerEstudoArtigos {
  flex: 1 1 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.ath-estudo-catalogo,
.ath-artigos-zotero-grid {
  flex: 1 1 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .ath-dashboard {
    padding: 8px 10px 10px 10px;
  }
  #athSecaoDashEscrita:not([hidden]),
  #athSecaoDashArtigosZotero:not([hidden]) {
    padding: 16px 16px 20px 16px;
    border-radius: 14px;
  }
  .ath-artigos-zotero-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 620px) {
  .ath-artigos-zotero-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ath-docs-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
  }
}

/* Barra Superior: Marca + Abas (Escrita vs Artigos Zotero/PDF) + Identificação/Login */
.ath-dash-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--ath-primary-line, #C8D7E6);
  border-radius: 16px;
  padding: 8px 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  flex-wrap: nowrap !important;
  box-sizing: border-box;
  flex-shrink: 0;
  overflow: visible;
}
.ath-dash-topbar::-webkit-scrollbar {
  display: none;
}
@media (max-width: 1280px) {
  .ath-dash-brand-sub { display: none !important; }
  .ath-dash-user-info small { display: none !important; }
}

.ath-dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ath-dash-brand-nome {
  display: block;
  font-weight: 900;
  font-size: 16px;
  color: #314F79;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.ath-dash-brand-sub {
  display: block;
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
}

/* Seletor das Duas Páginas Principais */
.ath-dash-nav-paginas {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 3px 4px;
  gap: 4px;
  height: 38px;
  box-sizing: border-box;
}

.ath-dash-aba-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  box-sizing: border-box;
  border: none;
  background: transparent;
  color: #475569;
  font-family: var(--glx-font, 'Nunito', sans-serif);
  font-size: 12.5px;
  font-weight: 800;
  padding: 0 14px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.ath-dash-aba-btn:hover {
  color: #1F2733;
  background: rgba(255, 255, 255, 0.65);
}

.ath-dash-aba-btn.on {
  background: #314F79;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(49, 79, 121, 0.25);
}

/* Identificação / Login do Usuário no Topo */
.ath-dash-user-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

.ath-dash-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  box-sizing: border-box;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 0 12px 0 5px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.ath-dash-user-pill:hover {
  border-color: #314F79;
  background: #EEF4FA;
}

.ath-dash-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ath-dash-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  justify-content: center;
}

.ath-dash-user-info strong {
  font-size: 12.5px;
  font-weight: 800;
  color: #1F2733;
}

.ath-dash-user-info small {
  font-size: 10.5px;
  color: #64748B;
}

.ath-dash-user-edit {
  color: #314F79;
  display: inline-flex;
  padding-left: 4px;
}

.ath-dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  margin-bottom: 20px !important;
  padding-bottom: 18px !important;
  border-bottom: 1.5px solid var(--ath-line);
  gap: 16px;
  flex-wrap: nowrap !important;
}

.ath-dash-head .ath-dash-titulo {
  min-width: 0;
  flex: 1 1 auto;
}

.ath-dash-head .ath-dash-titulo h1 {
  margin: 0 0 4px 0 !important;
  font-size: 23px !important;
  font-weight: 800;
  color: var(--ath-text);
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25 !important;
}

.ath-dash-head .ath-dash-titulo p {
  margin: 0 !important;
  color: var(--ath-muted);
  font-size: 13px !important;
  line-height: 1.4 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ath-dash-head-acoes, #athHeaderAcoesZotero {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap !important;
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
  min-height: 38px;
  height: 38px;
}

.ath-dash-pasta-banner-info {
  flex: 1 1 auto;
  min-width: 0;
}

.ath-dash-pasta-banner .ath-dash-head-acoes {
  margin-left: 12px;
}

@media (max-width: 640px) {
  .ath-dash-pasta-banner {
    flex-wrap: wrap;
    gap: 8px;
  }
  .ath-dash-pasta-banner .ath-dash-head-acoes {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
  }
}

.ath-dash-filtros-linha, .ath-dash-filtros, .ath-estudo-barra-topo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px !important;
  width: 100%;
  max-width: 620px;
  flex-wrap: nowrap;
}

.ath-dash-filtros-linha .ath-busca-box,
.ath-dash-filtros .ath-busca-box,
.ath-estudo-barra-topo .ath-busca-box {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

.ath-busca-box .ath-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ath-muted);
  pointer-events: none;
}

.ath-busca-box input {
  padding-left: 36px;
}

.ath-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(218px, 260px));
  gap: 20px;
}

/* Capa de caderno dos documentos. */
.ath-doc-card {
  background: #F4F0E6;
  border: 2px solid #BDAF9E;
  border-radius: 8px 12px 12px 8px;
  padding: 12px 12px 10px 20px;
  box-shadow: 4px 8px 18px rgba(29, 42, 57, .15), inset 5px 0 0 #6A4B38;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
  min-height: 292px;
  box-sizing: border-box;
}

.ath-doc-card::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 16px;
  bottom: 16px;
  left: -11px;
  width: 19px;
  background: radial-gradient(ellipse at center, transparent 35%, #48515B 40% 54%, #A7ADB1 59%, transparent 64%) left top / 19px 23px repeat-y;
  pointer-events: none;
}

.ath-doc-card:hover {
  transform: translateY(-4px);
  box-shadow: 5px 12px 22px rgba(29, 42, 57, .2), inset 5px 0 0 #6A4B38;
  border-color: #8F7B67;
}

.ath-doc-card:focus-visible {
  outline: 3px solid #314F79;
  outline-offset: 5px;
}

.ath-doc-card-capa-preview {
  flex: 1 1 auto;
  min-height: 177px;
  background: repeating-linear-gradient(to bottom, #FFFEF9 0 25px, #DCE8E9 26px, #FFFEF9 27px);
  border: 1px solid #D5CDC0;
  border-radius: 3px 6px 6px 3px;
  padding: 14px 12px 12px 18px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  text-align: left;
  overflow: hidden;
  position: relative;
}

.ath-doc-card-capa-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: #D3AC87;
}

.ath-doc-card-capa-marca {
  color: #746655;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 27px;
  margin-bottom: 0;
}

.ath-doc-card-capa-autor {
  font-size: 10px;
  font-weight: 650;
  color: #586679;
  margin-top: auto;
  line-height: 27px;
}

.ath-doc-card-header {
  display: flex;
  flex-wrap: wrap; /* os selos (tipo, situação, nuvem, compartilhado) quebram de linha em vez de passar do cartão */
  justify-content: flex-start;
  align-items: center;
  gap: 4px 6px;
  margin-bottom: 8px;
  min-width: 0;
}

.ath-doc-card-header .ath-badge {
  font-size: 9.5px;
  padding: 1px 7px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  max-width: 100%;
}

.ath-doc-card-titulo {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ath-text);
  line-height: 27px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ath-doc-card-subtitulo {
  margin: 0 0 12px 0;
  font-size: 11px;
  color: var(--ath-text-secondary);
  line-height: 27px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 32px;
}

.ath-doc-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 7px;
  border-top: 1px solid var(--ath-line-soft);
  font-size: 11px;
  color: var(--ath-muted);
  gap: 6px;
}
.ath-doc-card-meta > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
}

.ath-doc-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ath-caderno-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 32, 49, .58);
  box-sizing: border-box;
}

.ath-caderno-aberto {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  width: min(900px, 100%);
  height: min(560px, calc(100vh - 48px));
  min-height: 360px;
  border: 9px solid #70513A;
  border-radius: 16px;
  background: #70513A;
  box-shadow: 0 24px 60px rgba(6, 17, 34, .4);
}

.ath-caderno-capa-interna,
.ath-caderno-pagina {
  min-width: 0;
  overflow: hidden;
  background: repeating-linear-gradient(to bottom, #FFFEF9 0 29px, #DAE7E9 30px, #FFFEF9 31px);
}

.ath-caderno-capa-interna {
  display: flex;
  flex-direction: column;
  padding: 42px 38px 30px 44px;
  border-radius: 8px 2px 2px 8px;
  box-shadow: inset -8px 0 18px rgba(62, 49, 37, .09);
}

.ath-caderno-sobretitulo {
  color: #856548;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ath-caderno-capa-interna h2 {
  margin: 34px 0 0;
  color: #213954;
  font-size: clamp(20px, 2.2vw, 29px);
  line-height: 31px;
  overflow-wrap: anywhere;
}

.ath-caderno-subtitulo {
  margin: 0;
  color: #566475;
  font-size: 13px;
  line-height: 31px;
}

.ath-caderno-resumo {
  margin-top: 31px;
  overflow-y: auto;
  color: #3C4C5F;
  line-height: 31px;
}

.ath-caderno-resumo strong {
  color: #314F79;
  font-size: 12px;
  text-transform: uppercase;
  line-height: 31px;
}

.ath-caderno-resumo p {
  margin: 0;
  font-size: 12.5px;
  line-height: 31px;
  white-space: pre-line;
}

.ath-caderno-autor {
  margin-top: auto;
  padding-top: 18px;
  color: #526175;
  font-size: 12px;
  font-weight: 700;
  line-height: 31px;
}

.ath-caderno-espiral {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  margin: 7px -7px;
}

.ath-caderno-espiral span {
  width: 32px;
  height: 12px;
  border: 4px solid #56616B;
  border-radius: 50%;
  background: linear-gradient(#C8CED0, #7F898E);
  box-shadow: 0 2px 2px rgba(0,0,0,.2);
}

.ath-caderno-pagina {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 30px 24px 36px;
  border-radius: 2px 8px 8px 2px;
  box-shadow: inset 8px 0 18px rgba(62, 49, 37, .1);
}

.ath-caderno-fechar {
  position: absolute;
  top: 8px;
  right: 9px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #EEF1F2;
  color: #314F79;
  font-size: 22px;
  cursor: pointer;
}

.ath-caderno-pagina-conteudo {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #B8C6CB transparent;
}

.ath-caderno-pagina h3 {
  margin: 13px 0 18px;
  color: #213954;
  font-size: 18px;
  line-height: 31px;
}

.ath-caderno-dados {
  display: grid;
  gap: 0;
  margin: 0 0 31px;
}

.ath-caderno-dados div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  font-size: 12px;
  min-height: 31px;
  line-height: 31px;
}

.ath-caderno-dados dt { color: #69788A; font-weight: 700; }
.ath-caderno-dados dd { margin: 0; color: #2E3F54; overflow-wrap: anywhere; }
.ath-caderno-referencias h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.ath-caderno-referencias h3 span { padding: 2px 7px; border-radius: 12px; background: #E7EEF5; font-size: 12px; }
.ath-caderno-referencias ol { margin: 0; padding-left: 22px; }
.ath-caderno-referencias li { padding: 0; color: #34465B; font-size: 12px; line-height: 31px; }
.ath-caderno-referencias li strong { display: block; font-weight: 700; line-height: 31px; }
.ath-caderno-referencias li small { display: block; color: #66788B; line-height: 31px; }
.ath-caderno-sem-refs, .ath-caderno-mais-refs { color: #66788B; font-size: 12px; }
.ath-caderno-abrir-editor { flex: 0 0 auto; margin-top: 14px; padding: 10px 14px; }

@media (max-width: 700px) {
  .ath-caderno-overlay { padding: 12px; }
  .ath-caderno-aberto {
    display: block;
    height: auto;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .ath-caderno-capa-interna { max-height: none; overflow: visible; padding: 20px 24px 24px; }
  .ath-caderno-capa-interna h2 { margin: 15px 0 0; font-size: 18px; }
  .ath-caderno-resumo { margin-top: 15px; overflow: visible; }
  .ath-caderno-autor, .ath-caderno-espiral { display: none; }
  .ath-caderno-pagina { min-height: 0; overflow: visible; padding: 18px 20px 20px; }
  .ath-caderno-pagina-conteudo { overflow: visible; }
  .ath-caderno-fechar { top: 8px; right: 8px; }
}

/* ==========================================================================
   PÁGINA 2: ESTÚDIO DE ARTIGOS ZOTERO + LEITOR/RISCADOR DE PDF (SAMSUNG NOTES)
   ========================================================================== */

.ath-estudo-barra-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .ath-dash-filtros-linha,
  .ath-estudo-barra-topo {
    max-width: none;
    width: 100%;
  }

  .ath-estudo-barra-topo > div:first-child {
    flex: 1 1 auto !important;
    max-width: none !important;
    min-width: 0;
  }

  .ath-dash-filtros-linha .ath-busca-box,
  .ath-estudo-barra-topo .ath-busca-box {
    flex: 1 1 auto;
    min-width: 0;
  }

  .ath-dash-filtros-linha .ath-menu-popover-wrap,
  .ath-estudo-barra-topo .ath-menu-popover-wrap,
  .ath-estudo-barra-topo .ath-menu-ordenar-bib {
    flex: 0 0 auto;
  }
}

.ath-estudo-aviso-arquitetura {
  background: linear-gradient(90deg, #EEF4FA 0%, #F8FAFC 100%);
  border: 1px solid #C8D7E6;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 12.5px;
  color: #1E293B;
  line-height: 1.45;
}

.ath-estudo-icone-destaque {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #314F79;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ath-artigos-zotero-grid {
  display: block;
  width: 100%;
  min-width: 0;
}

.ath-artigo-zotero-card {
  background: #FFFFFF;
  border: 1px solid #DCE4EE;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ath-artigo-zotero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: #94A3B8;
}

.ath-artigo-capa-pdf {
  background: #F1F5F9;
  padding: 14px 16px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ath-artigo-capa-folha {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ath-artigo-capa-periodico {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748B;
  letter-spacing: 0.04em;
}

.ath-artigo-capa-titulo {
  font-size: 11.5px;
  font-weight: 800;
  color: #1F2733;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ath-artigo-capa-autores {
  font-size: 10px;
  color: #475569;
  font-weight: 600;
}

.ath-artigo-capa-linhas {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
}

.ath-artigo-capa-linhas span {
  height: 4px;
  border-radius: 2px;
  background: #E2E8F0;
  width: 100%;
}

.ath-artigo-capa-linhas span.hl {
  background: #FDE047;
  width: 78%;
}

.ath-artigo-capa-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ath-selo-zotero,
.ath-selo-drive {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.ath-selo-zotero {
  background: #FEE2E2;
  color: #991B1B;
}

.ath-selo-drive {
  background: #DCFCE7;
  color: #166534;
}

.ath-artigo-card-corpo {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.ath-artigo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ath-tag-chip {
  font-size: 10px;
  font-weight: 700;
  background: #EEF4FA;
  color: #314F79;
  padding: 2px 8px;
  border-radius: 999px;
}

.ath-artigo-titulo {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #1F2733;
  line-height: 1.3;
}

.ath-artigo-autores {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.ath-artigo-resumo-curto {
  margin: 0;
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ath-artigo-estatisticas {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748B;
  padding-top: 8px;
  border-top: 1px dashed #E2E8F0;
  flex-wrap: wrap;
}

.ath-artigo-card-rodape {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
}

/* Estúdio de Leitura e Risco de PDF (Samsung Notes + Zotero) */
.ath-estudio-pdf-shell {
  background: #FFFFFF;
  border: 1px solid #C8D7E6;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 78vh;
}

.ath-estudio-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #F8FAFC;
  border-bottom: 1px solid #CBD5E1;
  flex-wrap: wrap;
}

.ath-estudio-topo-esq {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ath-estudio-doc-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ath-estudio-doc-info strong {
  font-size: 13px;
  font-weight: 800;
  color: #1F2733;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.ath-estudio-doc-info span {
  font-size: 11px;
  color: #64748B;
}

.ath-samsung-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 999px;
  padding: 4px 10px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  flex-wrap: wrap;
}

.ath-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: #334155;
  font-family: var(--glx-font, 'Nunito', sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.ath-tool-btn:hover {
  background: #F1F5F9;
}

.ath-tool-btn.on {
  background: #314F79;
  color: #FFFFFF;
}

.ath-toolbar-sep {
  width: 1px;
  height: 20px;
  background: #E2E8F0;
  margin: 0 2px;
}

.ath-cores-tinta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ath-cor-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  padding: 0;
}

.ath-cor-dot.on {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px #1F2733;
}

.ath-estudio-topo-dir {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ath-estudio-corpo {
  display: grid;
  grid-template-columns: 1fr 370px;
  flex: 1;
  min-height: 680px;
}

.ath-estudio-pdf-area {
  background: #E2E8F0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #CBD5E1;
}

.ath-estudio-paginador {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #F1F5F9;
  border-bottom: 1px solid #CBD5E1;
}

.ath-pdf-palco-scroll {
  flex: 1;
  overflow: auto;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.ath-pdf-folha-container {
  position: relative;
  width: 794px;
  min-height: 1040px;
  background: #FFFFFF;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
  border-radius: 4px;
  overflow: visible;
}

.ath-pdf-folha-texto {
  padding: 56px 64px;
  color: #1E293B;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.68;
  font-size: 15px;
  user-select: text;
}

.ath-pdf-folha-cabecalho {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #64748B;
  border-bottom: 1.5px solid #CBD5E1;
  padding-bottom: 8px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.ath-pdf-folha-titulo {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.3;
  margin: 0 0 10px 0;
}

.ath-pdf-folha-autores {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #314F79;
  margin-bottom: 24px;
}

.ath-pdf-folha-colunas p {
  margin: 0 0 16px 0;
  text-align: justify;
}

.ath-pdf-folha-rodape {
  margin-top: 48px;
  padding-top: 12px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  color: #64748B;
}

.ath-pdf-embed-nativo {
  width: 794px;
  height: 1040px;
  border: none;
}

.ath-pdf-ink-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  touch-action: none !important;
}

.ath-pdf-pins-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

.ath-pdf-pin-balao {
  position: absolute;
  width: 220px;
  background: #FFFBEB;
  border: 2px solid #F59E0B;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  pointer-events: auto;
  overflow: hidden;
  font-family: 'Nunito', sans-serif;
}

.ath-pdf-pin-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  color: #FFFFFF;
  font-size: 11px;
}

.ath-pin-del {
  border: none;
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
  font-weight: 900;
  font-size: 11px;
}

.ath-pdf-pin-txt {
  padding: 8px 10px;
  font-size: 11.5px;
  color: #1F2733;
  line-height: 1.35;
}

/* Painel Lateral Direito do Estúdio */
.ath-estudio-painel-dir {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
}

.ath-estudio-abas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #CBD5E1;
  background: #F8FAFC;
}

.ath-estudio-aba {
  border: none;
  background: transparent;
  padding: 11px 6px;
  font-family: var(--glx-font, 'Nunito', sans-serif);
  font-size: 11.5px;
  font-weight: 800;
  color: #64748B;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
}

.ath-estudio-aba.on {
  color: #314F79;
  border-bottom-color: #314F79;
  background: #FFFFFF;
}

.ath-estudio-painel-corpo {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.ath-fichamento-rotulo {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: #314F79;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.ath-fichamento-resumo-orig {
  font-size: 12px;
  color: #475569;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.45;
}

.ath-fichamento-dica {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #EEF4FA;
  border: 1px solid #C8D7E6;
  font-size: 11.5px;
  color: #1E293B;
  line-height: 1.4;
}

.ath-lista-citacoes-pdf {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ath-citacao-pdf-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 12px;
}

.ath-citacao-pdf-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ath-citacao-pag-badge {
  font-size: 10.5px;
  font-weight: 800;
  background: #EEF4FA;
  color: #314F79;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.ath-citacao-pdf-texto {
  margin: 0 0 6px 0;
  font-size: 12px;
  font-style: italic;
  color: #1F2733;
  line-height: 1.4;
}

.ath-citacao-pdf-ref {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
}

.ath-citacao-pdf-nota {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #CBD5E1;
  font-size: 11px;
  color: #334155;
}


/* ==========================================================================
   MODO TELA CHEIA (FULL-SCREEN 100VW × 100VH) DO ESTÚDIO DE LEITURA & ZOTERO
   Idêntico ao layout de 3 colunas da Escrita (.rm-conteudo / .rm-ed-grade)
   ========================================================================== */

.ath-dashboard.ath-dashboard-estudio-full {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: 100% !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 100 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  background: var(--ath-bg, #EFF2F6) !important;
}

.ath-dashboard.ath-dashboard-estudio-full > .ath-dash-topbar,
.ath-dashboard.ath-dashboard-estudio-full .ath-dash-head,
.ath-dashboard.ath-dashboard-estudio-full .ath-dash-head-zotero,
.ath-dashboard.ath-dashboard-estudio-full .ath-dash-sidebar,
.ath-dashboard.ath-dashboard-estudio-full .ath-dash-pasta-banner {
  display: none !important;
}

.ath-dashboard.ath-dashboard-estudio-full .ath-dash-layout {
  border: none !important;
  border-radius: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.ath-dashboard.ath-dashboard-estudio-full .ath-dash-main-area {
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

.ath-dashboard.ath-dashboard-estudio-full .ath-dash-main-area > #athSecaoDashArtigosZotero,
.ath-dashboard.ath-dashboard-estudio-full .ath-dash-main-area > #athSecaoDashArtigosZotero:not([hidden]),
.ath-dashboard.ath-dashboard-estudio-full #athSecaoDashArtigosZotero,
.ath-dashboard.ath-dashboard-estudio-full #athContainerEstudoArtigos {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.ath-estudio-full-shell,
.ath-estudio-full-shell.rm-conteudo {
  position: fixed !important;
  inset: 0 !important;
  z-index: 101 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  background: var(--ath-bg, #EFF2F6) !important;
}

.ath-estudio-full-shell .rm-editor.rm-main {
  display: flex !important;
  flex-direction: column !important;
  padding: 10px 12px !important;
  flex: 1 1 0 !important;
  height: calc(100% - 52px) !important;
  max-height: calc(100% - 52px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.ath-pdf-folha-extra-corpo {
  min-height: 100%;
  box-sizing: border-box;
  background-image: radial-gradient(#CBD5E1 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  background-position: 12px 12px;
}

.ath-estudio-full-shell .rm-ed-grade {
  display: grid !important;
  grid-template-columns: 340px minmax(0, 1fr) 350px;
  grid-template-columns: var(--ath-col-esq, 340px) minmax(0, 1fr) var(--ath-col-dir, 350px) !important;
  gap: 12px !important;
  flex: 1 1 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  align-items: stretch !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.ath-estudio-full-shell #athEstudioColEsq,
.ath-estudio-full-shell #athEstudioColPrev,
.ath-estudio-full-shell #athEstudioColDir {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.ath-estudio-full-shell .rm-prev-palco {
  overflow-x: auto !important;
  overflow-y: auto !important;
  height: 100% !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-x pan-y pinch-zoom !important;
  overscroll-behavior: contain !important;
}

.ath-estudio-full-shell #athEstudioColEsq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  overflow: hidden;
}

.ath-estudio-full-shell #athEstudioColDir {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.ath-estudio-inspetor-card {
  flex: 1 1 0;
  min-height: 0;
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ath-estudio-inspetor-card .ath-estudio-abas {
  flex-shrink: 0;
}

.ath-estudio-inspetor-card .ath-estudio-painel-corpo {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
}

.rm-ic-bt.ath-tool-pilula.ativo {
  background: var(--glx-primary, #314F79) !important;
  border-color: var(--glx-primary, #314F79) !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(49, 79, 121, 0.24);
}

.ath-dot-conexao {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94A3B8;
  display: inline-block;
  flex-shrink: 0;
}

.ath-dot-conexao.on {
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.ath-btn-zotero-ok {
  border-color: #A7F3D0 !important;
  background: #ECFDF5 !important;
  color: #059669 !important;
}

.ath-btn-zotero-ok svg {
  stroke: #10B981 !important;
  color: #10B981 !important;
}

.ath-btn-importar-coluna {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1px !important;
  line-height: 1 !important;
  padding: 0 !important;
}

.ath-btn-importar-coluna svg {
  display: block !important;
  margin: 0 !important;
}

.ath-btn-importar-coluna svg:first-child {
  margin-top: 1px !important;
}

.ath-btn-importar-coluna svg:last-child {
  margin-top: -1px !important;
}

/* ==========================================================================
   ROLAGEM CONTÍNUA DE TODAS AS PÁGINAS DO PDF + CARTÃO DE NOTA EDITÁVEL +
   POPOVER DE SELEÇÃO DE TEXTO + MODO LINHA RETA
   ========================================================================== */

.ath-pdf-todas-paginas-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding-bottom: 48px;
}

.ath-pdf-pagina-bloco-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ath-pdf-etiqueta-pagina {
  width: 794px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #CBD5E1;
  border-radius: 999px;
  font-family: var(--glx-font, 'Nunito', sans-serif);
  font-size: 11.5px;
  color: #334155;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.ath-pdf-etiqueta-num {
  font-weight: 800;
  color: #314F79;
}

.ath-pdf-etiqueta-stats {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
}

.ath-pdf-folha-container {
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
  border: 2px solid transparent;
}

.ath-pdf-folha-container.pagina-ativa {
  border-color: rgba(49, 79, 121, 0.45);
  box-shadow: 0 12px 34px rgba(49, 79, 121, 0.22);
}

/* Botão Modo Linha Reta Ativo */
.rm-ic-bt.ath-btn-linha-reta.ativo {
  background: var(--glx-primary, #314F79) !important;
  border-color: var(--glx-primary, #314F79) !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(49, 79, 121, 0.28) !important;
}

.rm-ic-bt.ath-btn-linha-reta.ativo svg {
  stroke: #FFFFFF !important;
  color: #FFFFFF !important;
}

.rm-ic-bt.ath-btn-linha-reta.ativo svg circle {
  fill: #FFFFFF !important;
}

/* Botões compactos no cabeçalho do cartão 50/50 esquerdo */
.ath-btn-mini-folha {
  height: 24px !important;
  padding: 0 9px !important;
  font-size: 11px !important;
  border-radius: 999px !important;
}

.ath-estudio-full-shell #athEstudioColEsq .rm-card-meio-a-meio-corpo {
  padding: 4px 6px 8px 4px !important;
}

/* Balão / Cartão de Nota Adesiva no PDF (Visualização + Minimizado + Compacto + Edição Inline) */
.ath-pdf-pin-balao {
  position: absolute;
  width: 220px;
  background: #FFFBEB;
  border: 2px solid #F59E0B;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
  pointer-events: auto;
  overflow: hidden;
  font-family: var(--glx-font, 'Nunito', sans-serif);
  transition: width 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  z-index: 12;
}

.ath-pdf-pin-balao.compacto {
  width: 165px;
}

.ath-pdf-pin-balao.minimizado {
  width: auto;
  min-width: 110px;
  max-width: 185px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.ath-pdf-pin-balao.minimizado .ath-pdf-pin-cab {
  padding: 4px 10px;
  gap: 6px;
}

.ath-pdf-pin-balao:hover {
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.22);
  z-index: 20;
}

.ath-pdf-pin-balao.editando {
  width: 248px;
  z-index: 35;
  background: #FFFFFF !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.28);
}

.ath-pdf-pin-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  color: #FFFFFF;
  font-size: 11px;
  cursor: grab;
  user-select: none;
  gap: 6px;
}

.ath-pdf-pin-cab:active {
  cursor: grabbing;
}

.ath-pin-cab-titulo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 155px;
}

.ath-pin-cab-acoes {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.ath-pin-edit-btn,
.ath-pin-del {
  border: none;
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  cursor: pointer;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.12s, transform 0.1s;
}

.ath-pin-edit-btn:hover,
.ath-pin-del:hover {
  background: rgba(255, 255, 255, 0.38);
}

.ath-pdf-pin-txt {
  padding: 8px 10px;
  font-size: 12px;
  color: #1F2733;
  line-height: 1.42;
  cursor: pointer;
  word-break: break-word;
}

.ath-pdf-pin-dica-clique {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  opacity: 0.78;
}

.ath-pdf-pin-form {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #FFFFFF;
}

.ath-pin-input-titulo {
  width: 100% !important;
  height: 28px !important;
  min-height: 28px !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 7px !important;
  padding: 4px 8px !important;
  font-family: var(--glx-font, 'Nunito', sans-serif) !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #0F172A !important;
  background: #F8FAFC !important;
  box-sizing: border-box !important;
}

.ath-pin-textarea {
  width: 100% !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 7px !important;
  padding: 6px 8px !important;
  font-family: var(--glx-font, 'Nunito', sans-serif) !important;
  font-size: 11.5px !important;
  color: #1E293B !important;
  line-height: 1.38 !important;
  resize: vertical !important;
  min-height: 58px !important;
  box-sizing: border-box !important;
}

.ath-pin-input-titulo:focus,
.ath-pin-textarea:focus {
  outline: none !important;
  border-color: #314F79 !important;
  background: #FFFFFF !important;
}

.ath-pin-form-rodape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 2px;
}

.ath-pin-cores {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ath-pin-cor-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.ath-pin-cor-dot.on {
  border-color: #0F172A;
  transform: scale(1.15);
}

.ath-pin-botoes {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ath-pin-ic-acao {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, transform 0.1s;
}

.ath-pin-ic-acao:hover {
  transform: translateY(-1px);
}

.ath-pin-ic-neutro {
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #475569;
}

.ath-pin-ic-neutro:hover {
  background: #EFF6FF;
  border-color: #314F79;
  color: #314F79;
}

.ath-pin-ic-perigo {
  border: 1px solid #FECACA;
  background: #FEF2F2;
  color: #DC2626;
}

.ath-pin-ic-perigo:hover {
  background: #FEE2E2;
  border-color: #F87171;
}

.ath-pin-ic-primario {
  border: none;
  background: #314F79;
  color: #FFFFFF;
}

.ath-pin-ic-primario:hover {
  background: #233B5C;
}

/* Popover Flutuante de Seleção de Texto no PDF */
.ath-pdf-selecao-popover[hidden] {
  display: none !important;
}

.ath-pdf-selecao-popover {
  position: fixed;
  z-index: 2200;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
  font-family: var(--glx-font, 'Nunito', sans-serif);
  user-select: none !important;
}

.ath-sel-pop-cores {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px 0 2px;
  border-right: 1px solid #E2E8F0;
  margin-right: 2px;
}

.ath-sel-cor-chip {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px #CBD5E1;
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  flex-shrink: 0;
}

.ath-sel-cor-chip:hover {
  transform: scale(1.18);
  box-shadow: 0 0 0 2px #314F79;
}

.ath-sel-cor-chip.on {
  box-shadow: 0 0 0 2.5px #314F79;
  transform: scale(1.15);
}

.ath-sel-pop-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #1E293B;
  font-family: var(--glx-font, 'Nunito', sans-serif);
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
}

.ath-sel-pop-btn:hover {
  background: #EEF4FA;
  border-color: #314F79;
  color: #314F79;
}

.ath-sel-cor-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

mark.ath-pdf-grifo-texto {
  background: rgba(250, 204, 21, 0.45);
  color: inherit;
  padding: 1px 2px;
  border-radius: 3px;
}

/* PDF real renderizado com pdf.js: uma folha por página, no formato original */
.ath-pdf-pagina-bloco-wrap { flex-shrink: 0; }
.ath-pdf-render-canvas { display: block; position: absolute; inset: 0; background: #FFFFFF; border-radius: 2px; }
.ath-pdf-text-layer {
  position: absolute;
  inset: 0;
  padding: 0;
  overflow: hidden;
  line-height: 1;
  z-index: 3;
  font-family: sans-serif;
  text-size-adjust: none;
  transform-origin: 0 0;
  caret-color: transparent !important;
}

.ath-pdf-text-layer,
.ath-pdf-text-layer * {
  caret-color: transparent !important;
}

.ath-pdf-text-layer > :not(.markedContent),
.ath-pdf-text-layer .markedContent span:not(.markedContent) {
  z-index: 1;
}

.ath-pdf-text-layer span {
  color: transparent;
  position: absolute;
  white-space: pre;
  cursor: text;
  transform-origin: 0% 0%;
  box-sizing: content-box;
  padding-top: 1px;
  padding-bottom: 2px;
  margin-top: -1px;
  margin-bottom: -2px;
}

.ath-pdf-text-layer span.markedContent {
  top: 0;
  height: 0;
}

.ath-pdf-text-layer .endOfContent {
  display: block;
  position: absolute;
  inset: 100% 0 0;
  z-index: 0;
  cursor: default;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.ath-pdf-text-layer.selecting .endOfContent,
.ath-pdf-text-layer .endOfContent.active {
  top: 0;
}

/* Seleção de texto no PDF: preserva o texto subjacente renderizado no canvas e evita texto duplicado/pisca-pisca */
.ath-pdf-text-layer span::selection {
  background: rgba(49, 79, 121, 0.28) !important;
  color: transparent !important;
}

.ath-pdf-text-layer ::selection {
  background: rgba(49, 79, 121, 0.28);
  color: transparent !important;
}

/* Elementos <br> de quebra de linha do PDF.js:
   Impede que a quebra de linha gere uma caixa de seleção na lateral esquerda da folha (x = 0)
   e elimina o recálculo intermitente que fazia a seleção piscar. */
.ath-pdf-text-layer br {
  position: static !important;
  user-select: none !important;
  pointer-events: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  width: 0 !important;
  height: 0 !important;
  color: transparent !important;
}

.ath-pdf-text-layer br::selection {
  background: transparent !important;
  color: transparent !important;
}
.ath-pdf-hl-rect { position: absolute; pointer-events: none; border-radius: 2px; mix-blend-mode: multiply; z-index: 2; }
.ath-pdf-carregando { padding: 40px; text-align: center; font-weight: 700; color: #314F79; }

/* Estilização refinada para a aba Zotero & Drive no Painel Direito */
.ath-btn-selecionar-pdf-painel {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.ath-btn-selecionar-pdf-painel:hover {
  color: #FFFFFF !important;
}

.ath-btn-selecionar-pdf-painel svg {
  stroke: #FFFFFF !important;
}

.ath-card-grade-campos label {
  color: #334155;
  font-weight: 700;
  font-size: 11px;
}


/* ==========================================================================
   TELA DE LOGIN E IDENTIFICAÇÃO EDITORIAL ATHENES
   ========================================================================== */

.ath-login-pagina {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 20%, #F8FAFC 0%, #EEF4FA 100%);
  padding: 24px 16px;
  box-sizing: border-box;
  font-family: var(--glx-font, Nunito), system-ui, sans-serif;
}

.ath-login-card {
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
  animation: athFadeIn 0.25s ease-out;
}

@keyframes athFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ath-login-header {
  text-align: center;
  margin-bottom: 22px;
}

.ath-login-logo-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #EEF4FA;
  color: #314F79;
  display: inline-grid;
  place-items: center;
  margin-bottom: 12px;
  border: 1px solid #C8D7E6;
}

.ath-login-header h1 {
  margin: 0 0 6px 0;
  font-size: 26px;
  font-weight: 800;
  color: #1F2733;
  letter-spacing: -0.02em;
}

.ath-login-subtitulo {
  margin: 0;
  font-size: 13px;
  color: #64748B;
  line-height: 1.45;
}

.ath-login-alerta {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.ath-login-alerta.info {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
}

.ath-login-alerta.sucesso {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #15803D;
}

.ath-login-alerta.erro {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
}

.ath-btn-google-login {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #FFFFFF;
  color: #1F2937;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}

.ath-btn-google-login:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.ath-login-divisor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px 0;
  color: #94A3B8;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ath-login-divisor::before,
.ath-login-divisor::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}

.ath-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ath-login-campo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ath-login-campo label {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
}

.ath-login-linha2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 440px) {
  .ath-login-linha2 {
    grid-template-columns: 1fr;
  }
}

.ath-login-lembrar-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 4px 0;
}

.ath-login-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.ath-login-checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: #314F79;
  cursor: pointer;
}

.ath-login-checkbox-texto strong {
  display: block;
  font-size: 12.5px;
  color: #1E293B;
  font-weight: 700;
}

.ath-login-checkbox-texto span {
  display: block;
  font-size: 11px;
  color: #64748B;
  margin-top: 1px;
}

.ath-btn-entrar {
  width: 100%;
  height: 42px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.ath-login-rodape {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
  text-align: center;
}

.ath-login-seguranca {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748B;
}

.ath-login-seguranca svg {
  stroke: #314F79;
  flex: none;
}

/* Botões do topo (Pasta no Drive): mesma altura do perfil, sem sublinhado */
.ath-dash-btn-topo {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px;
  border: 1px solid var(--ath-primary-line, #C8D7E6); border-radius: 12px; background: #FFFFFF; color: var(--ath-primary, #314F79);
  font: 700 12.5px var(--glx-font, inherit); text-decoration: none; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.ath-dash-btn-topo:hover { background: #EEF4FA; border-color: var(--ath-primary, #314F79); box-shadow: 0 1px 4px rgba(49, 79, 121, .15); }
.ath-dash-btn-topo:focus-visible { outline: 2px solid var(--ath-primary, #314F79); outline-offset: 2px; }
.ath-dash-btn-topo-seta { font-size: 11px; opacity: .65; }

/* Rodapé da janela de perfil: três botões da mesma altura; "Sair" discreto à esquerda, ação principal à direita */
.ath-modal-foot-perfil { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ath-modal-foot-perfil > div { display: flex; gap: 8px; margin-left: auto; }
.ath-btn-rodape {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px;
  border: 1px solid #CBD5E1; border-radius: 10px; background: #FFFFFF; color: #334155; cursor: pointer;
  font: 700 12.5px var(--glx-font, inherit); white-space: nowrap; transition: background .15s ease, border-color .15s ease;
}
.ath-btn-rodape:hover { background: #F1F5F9; border-color: #94A3B8; }
.ath-btn-rodape-primario { background: var(--ath-primary, #314F79); border-color: var(--ath-primary, #314F79); color: #FFFFFF; }
.ath-btn-rodape-primario:hover { background: #263F63; border-color: #263F63; }
.ath-btn-rodape-sair { color: #B42318; border-color: #F5C2C0; background: #FFFFFF; }
.ath-btn-rodape-sair:hover { background: #FEF2F2; border-color: #E8908B; }
.ath-btn-rodape:focus-visible { outline: 2px solid var(--ath-primary, #314F79); outline-offset: 2px; }

/* Barra de ações da página inicial: sincronizar e backup só com ícone; Importar como lista */
.ath-btn-icone { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.ath-btn-icone:focus-visible, .ath-menu-importar .ath-btn:focus-visible { outline: 2px solid var(--ath-primary, #314F79); outline-offset: 2px; }
.ath-girando svg { animation: ath-giro 0.9s linear infinite; }
@keyframes ath-giro { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ath-girando svg { animation-duration: 2.5s; } }

.ath-menu-importar { position: relative; }
.ath-menu-importar > .ath-btn { display: inline-flex; align-items: center; gap: 7px; }
.ath-menu-importar-lista {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 270px; margin: 0; padding: 6px; list-style: none;
  background: #FFFFFF; border: 1px solid var(--ath-primary-line, #C8D7E6); border-radius: 12px; box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
}
.ath-menu-importar-lista[hidden] { display: none; }
.ath-menu-importar-lista button {
  width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent;
  text-align: left; cursor: pointer; color: #1F2733; font: inherit;
}
.ath-menu-importar-lista button:hover, .ath-menu-importar-lista button:focus-visible { background: #EEF4FA; outline: none; }
.ath-menu-importar-lista strong { display: block; font-size: 12.5px; }
.ath-menu-importar-lista small { display: block; font-size: 11px; color: #64748B; margin-top: 1px; }
.ath-menu-importar-lista svg { margin-top: 2px; color: var(--ath-primary, #314F79); flex: none; }
.ath-pdf-sem-arquivo { margin: 60px auto; max-width: 460px; padding: 26px 28px; text-align: center; background: #fff; border: 1px dashed #C8D7E6; border-radius: 14px; color: #334155; }
.ath-pdf-sem-arquivo strong { display: block; font-size: 15px; color: #314F79; margin-bottom: 8px; }
.ath-pdf-sem-arquivo p { font-size: 12.5px; line-height: 1.5; margin: 0 0 14px; color: #64748B; }
.ath-pdf-sem-arquivo-acoes { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ath-zot-info-lista { display: grid; grid-template-columns: minmax(70px, 34%) 1fr; gap: 6px 10px; margin: 8px 0 0; font-size: 11.5px; }
.ath-zot-info-lista dt { color: #64748B; text-align: right; font-weight: 600; }
.ath-zot-info-lista dd { margin: 0; color: #1E293B; word-break: break-word; }
.ath-zot-info-lista a { color: #314F79; }
.ath-pdf-local { margin: 4px 0 14px; padding: 10px 12px; text-align: left; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; font-size: 12px; }
.ath-pdf-local > div { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.ath-pdf-local span { font-weight: 700; color: #64748B; min-width: 48px; }
.ath-pdf-local code { flex: 1; min-width: 0; word-break: break-all; user-select: all; color: #1E293B; }
.ath-pdf-local small, .ath-pdf-local-dica { display: block; color: #64748B; font-size: 11px; line-height: 1.4; }

/* Aba "Zotero & Drive" do estúdio: design moderno e sem poluição visual */
.ath-zd { display: flex; flex-direction: column; gap: 12px; min-height: 100%; }

/* Grid de Status no Topo */
.ath-zd-status-topo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ath-zd-status-card { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; }
.ath-zd-status-card-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 800; color: #314F79; }
.ath-zd-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.ath-zd-dot.ok { background: #16A34A; box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2); }
.ath-zd-dot.aviso { background: #D97706; box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2); }
.ath-zd-status-card-sub { font-size: 10.5px; color: #64748B; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Cards de Seção */
.ath-zd-sec { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.ath-zd-sec h4 { display: flex; align-items: center; gap: 6px; margin: 0; font: 800 11px var(--glx-font, 'Nunito', sans-serif); color: #314F79; text-transform: uppercase; letter-spacing: .05em; }

/* Box do Arquivo PDF */
.ath-zd-arquivo-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; }
.ath-zd-arquivo-icone { flex: none; width: 32px; height: 32px; border-radius: 8px; background: #FEF2F2; color: #DC2626; display: flex; align-items: center; justify-content: center; }
.ath-zd-arquivo-info { flex: 1; min-width: 0; }
.ath-zd-arquivo-nome { font-size: 12px; font-weight: 750; color: #1E293B; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ath-zd-arquivo-status { font-size: 10.5px; color: #64748B; display: flex; align-items: center; gap: 4px; margin-top: 1px; }

/* Botões do PDF */
.ath-zd-acoes-pdf { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 6px; }
.ath-zd-btn-pdf { height: 32px; padding: 0 8px; font-size: 11px; font-weight: 750; border-radius: 8px; border: 1px solid #CBD5E1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; min-width: 0; }
.ath-zd-btn-pdf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ath-zd-btn-pdf.principal { background: #EEF4FA; border: 1px solid #C8D7E6; color: #314F79; }
.ath-zd-btn-pdf.principal:hover { background: #E2ECF6; color: #1B2D47; }
.ath-zd-btn-pdf.drive { background: #FFFFFF; border: 1px solid #CBD5E1; color: #334155; }
.ath-zd-btn-pdf.drive:hover { background: #F8FAFC; border-color: #94A3B8; }

.ath-zd-acoes-secundarias { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.ath-zd-btn-sub { height: 30px; padding: 0 8px; font-size: 11px; font-weight: 700; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid transparent; background: transparent; cursor: pointer; }
.ath-zd-btn-sub.desvincular { color: #DC2626; border-color: #FECACA; }
.ath-zd-btn-sub.desvincular:hover { background: #FEF2F2; }
.ath-zd-btn-sub.guardar { color: #15803D; background: #F0FDF4; border: 1px solid #BBF7D0; }
.ath-zd-btn-sub.guardar:hover { background: #DCFCE7; }

/* Grades e campos */
.ath-zd-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ath-zd label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 700; color: #475569; min-width: 0; }
.ath-zd .ath-zd-acoes-pdf label.ath-zd-btn-pdf { flex-direction: row; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; font-weight: 750; }
.ath-zd .ath-zd-acoes-pdf .ath-zd-btn-pdf svg { flex: none; }
.ath-zd .ath-input { height: 32px; padding: 0 9px; font-size: 12px; width: 100%; box-sizing: border-box; font-weight: 500; border-radius: 8px; border: 1px solid #CBD5E1; background: #F8FAFC; }
.ath-zd .ath-input:focus { outline: none; border-color: var(--ath-primary, #314F79); background: #fff; }
.ath-zd-segredo { display: flex; gap: 4px; }
.ath-zd-segredo .ath-btn { flex: none; font-size: 11px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid #CBD5E1; }

.ath-zd-det summary { cursor: pointer; font-size: 11px; font-weight: 700; color: #64748B; padding: 2px 0; }
.ath-zd-det label { margin-top: 6px; }
.ath-zd-det-sec > summary { cursor: pointer; list-style: none; }
.ath-zd-det-sec > summary::-webkit-details-marker { display: none; }
.ath-zd-det-sec[open] > summary { margin-bottom: 6px; }
.ath-zd-dica { color: #64748B; font-size: 10.5px; line-height: 1.4; }

.ath-zd-rodape { position: sticky; bottom: 0; margin-top: auto; padding: 10px 0 4px; background: linear-gradient(to top, var(--ath-surface, #fff) 80%, transparent); }
.ath-zd-sync { width: 100%; height: 34px; justify-content: center; font-weight: 800; font-size: 12px; color: #fff !important; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; }
.ath-zd-sync span { color: #fff !important; }
.ath-zd-status { font-size: 11.5px; margin-top: 6px; color: #15803D; font-weight: 700; line-height: 1.4; }
@media (max-width: 420px) { .ath-zd-grade { grid-template-columns: 1fr; } }
.ath-pdf-sem-arquivo .glx-btn-primary, .ath-pdf-sem-arquivo label.glx-btn-primary { color: #fff !important; background: #314F79; }

/* Seletor de PDF do Google Drive: navegar pelas pastas e copiar para o Athenes */
.ath-drive-nav .ath-modal-corpo { display: flex; flex-direction: column; gap: 10px; min-height: 340px; }
.ath-dn-abas { display: flex; gap: 4px; padding: 3px; background: #EEF2F6; border-radius: 10px; }
.ath-dn-abas button { flex: 1; border: 0; background: transparent; padding: 6px 8px; border-radius: 8px; font: 700 12px var(--glx-font, sans-serif); color: #64748B; cursor: pointer; }
.ath-dn-abas button.on { background: #fff; color: #314F79; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.ath-dn-busca { width: 100%; box-sizing: border-box; height: 34px; }
.ath-dn-trilha { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; color: #64748B; }
.ath-dn-trilha button { border: 0; background: none; padding: 2px 4px; color: #314F79; font-weight: 700; cursor: pointer; border-radius: 6px; }
.ath-dn-trilha button:hover { background: #EEF4FA; }
.ath-dn-trilha strong { color: #1E293B; padding: 2px 4px; }
.ath-dn-status { font-size: 12px; font-weight: 700; color: #314F79; min-height: 16px; }
.ath-dn-lista { flex: 1; min-height: 160px; max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; }
.ath-dn-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #E2E8F0; border-radius: 10px; background: #F8FAFC; text-align: left; font: 600 13px var(--glx-font, sans-serif); color: #1E293B; width: 100%; box-sizing: border-box; }
button.ath-dn-pasta { cursor: pointer; }
button.ath-dn-pasta:hover { background: #EEF4FA; border-color: #C8D7E6; }
.ath-dn-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ath-dn-nome small { display: block; color: #94A3B8; font-weight: 600; font-size: 10.5px; }
.ath-dn-seta { color: #94A3B8; }
.ath-dn-vazio { padding: 28px 12px; text-align: center; color: #94A3B8; font-size: 12.5px; }
.ath-dn-permissao { padding: 18px; border: 1px dashed #C8D7E6; border-radius: 12px; background: #fff; text-align: center; }
.ath-dn-permissao strong { display: block; color: #314F79; margin-bottom: 6px; }
.ath-dn-permissao p { font-size: 12px; line-height: 1.5; color: #64748B; margin: 0 0 12px; }
.ath-dn-mais { align-self: center; }
.ath-dn-dica { flex: 1; color: #64748B; font-size: 11px; }
.ath-drive-nav .ath-modal-foot { display: flex; align-items: center; gap: 12px; }
.ath-dn-mais[hidden] { display: none; }

/* Zoom do estúdio de PDF: a folha ocupa no layout o tamanho que aparece (sem vão entre páginas) e a etiqueta acompanha */
.ath-pdf-todas-paginas-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: max-content !important;
  min-width: 100% !important;
  padding: 24px 32px 64px 32px !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
  gap: 10px !important;
}
.ath-pdf-pagina-bloco-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin: 0 auto !important;
  flex-shrink: 0 !important;
  width: max-content !important;
  gap: 10px !important;
}
.ath-pdf-escala {
  position: relative !important;
  flex: none !important;
  margin: 0 auto !important;
  width: calc(794px * var(--ath-zoom, 1)) !important;
  height: calc(var(--ath-pdf-page-height, 1123px) * var(--ath-zoom, 1)) !important;
}
.ath-pdf-escala > .ath-pdf-folha-container {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  transform-origin: 0 0 !important;
  transform: scale(var(--ath-zoom, 1)) !important;
}
.ath-pdf-pagina-bloco-wrap > .ath-pdf-etiqueta-pagina {
  width: max(calc(794px * var(--ath-zoom, 1)), 260px) !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
}
.ath-zd-desvincular { width: 100%; justify-content: center; color: #B42318; border-color: #FECACA; background: #FFF; font-size: 11.5px; font-weight: 700; }
.ath-zd-desvincular:hover { background: #FEF2F2; }

/* Botão de Instalar App (PWA) no topo */
.ath-dash-btn-instalar {
  background: #EEF4FA;
  border-color: #314F79;
  color: #314F79;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: athPulsoInstalar 3s infinite ease-in-out;
}

.ath-dash-btn-instalar:hover {
  background: #314F79;
  color: #FFFFFF;
}

@keyframes athPulsoInstalar {
  0%, 100% { box-shadow: 0 0 0 0 rgba(49, 79, 121, 0.25); }
  50% { box-shadow: 0 0 0 4px rgba(49, 79, 121, 0.1); }
}

/* Seletor de espessura do traço (Caneta / Marca-Texto) */
.ath-espessuras { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border: 1px solid #E2E8F0; border-radius: 999px; background: #FFFFFF; }
.ath-espessuras[hidden] { display: none; }
.ath-esp-btn { width: 28px; height: 28px; border: 1px solid transparent; border-radius: 50%; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ath-esp-btn span { display: block; width: 16px; border-radius: 999px; background: #314F79; }
.ath-esp-btn:hover { background: #EEF4FA; }
.ath-esp-btn.on { border-color: #314F79; background: #EEF4FA; }

/* Responsividade do Topo: Drive (só símbolo) e Perfil (só avatar) em telas menores */
@media (max-width: 1180px) {
  .ath-dash-btn-drive .ath-dash-btn-texto-drive,
  .ath-dash-btn-drive .ath-dash-btn-topo-seta {
    display: none !important;
  }
  .ath-dash-btn-drive {
    padding: 0 10px !important;
    min-width: 38px !important;
    height: 38px !important;
    justify-content: center !important;
  }

  .ath-dash-user-info,
  .ath-dash-user-edit {
    display: none !important;
  }
  .ath-dash-user-pill {
    padding: 0 !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    justify-content: center !important;
    border-radius: 50% !important;
  }
}

#athBtnConfigurarChaveZotero {
  gap: 6px;
  padding: 0 10px;
  height: 38px;
  box-sizing: border-box;
}

#athBtnImportarBib {
  gap: 4px;
  padding: 0 10px;
  height: 38px;
  box-sizing: border-box;
}

#athBtnNovoArtigoDrive {
  padding: 0 11px;
  min-width: 38px;
  height: 38px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Popovers de Ordenação e Filtragem (Documentos e Referências) */
.ath-menu-popover-wrap, .ath-menu-ordenar-bib {
  position: relative;
  flex-shrink: 0;
}

.ath-menu-popover, .ath-menu-ordenar-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 250px;
  background: #FFFFFF;
  border: 1px solid var(--ath-primary-line, #C8D7E6);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  padding: 6px;
}

.ath-menu-popover-header, .ath-menu-ordenar-header {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ath-primary, #314F79);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 4px;
}

.ath-menu-popover-lista, .ath-menu-ordenar-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ath-menu-popover-lista button, .ath-menu-ordenar-lista button {
  width: 100%;
  border: none;
  background: none;
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #334155;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.ath-menu-popover-lista button:hover, .ath-menu-ordenar-lista button:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.ath-menu-popover-lista button.sel, .ath-menu-ordenar-lista button.sel {
  background: #EEF4FA;
  color: #314F79;
  font-weight: 700;
}

.ath-btn-filtro-ativo {
  border-color: #93C5FD !important;
  background: #EFF6FF !important;
  color: #2563EB !important;
}

#athMenuFiltrarBibPopover { width: min(320px, calc(100vw - 24px)); max-height: min(78vh, 700px); overflow-y: auto; }
.ath-filtros-obra { display: grid; gap:7px; border-top:1px solid #E3EAF2; padding:11px 10px 7px; font-size:11px; color:#334155; }
.ath-filtros-obra > strong { color:#314F79; text-transform:uppercase; letter-spacing:.04em; }
.ath-filtros-obra label { display:grid; gap:3px; font-weight:600; }
.ath-filtros-anos { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.ath-filtros-obra input { width:100%; box-sizing:border-box; min-width:0; border:1px solid #CBD5E1; border-radius:7px; padding:6px 7px; font:inherit; font-size:12px; }
.ath-filtros-obra input:focus { outline:2px solid #93B5DC; border-color:#314F79; }
.ath-filtros-limpar { justify-self:start; border:0; background:transparent; color:#314F79; padding:3px 0; cursor:pointer; font-family:inherit; font-size:11px; font-weight:700; }
.ath-artigo-menu-contexto { position:fixed; z-index:100003; min-width:205px; padding:5px; background:#fff; border:1px solid #C8D7E6; border-radius:11px; box-shadow:0 12px 32px rgba(15,23,42,.2); font:500 12.5px var(--glx-font,system-ui); color:#1F2733; }
.ath-artigo-menu-contexto button { display:block; width:100%; padding:8px 10px; border:0; border-radius:7px; background:transparent; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.ath-artigo-menu-contexto button:hover { background:#EEF4FA; }.ath-artigo-menu-contexto button:disabled { opacity:.45; cursor:default; }
.ath-artigo-menu-contexto hr { border:0; border-top:1px solid #E3EAF2; margin:4px 2px; }
.ath-menu-pasta-contexto button { display:flex; align-items:center; gap:10px; }
.ath-menu-pasta-contexto button svg { flex:none; color:#526A86; }
.ath-menu-pasta-contexto .ath-menu-pasta-excluir { color:#C93636; }
.ath-menu-pasta-contexto .ath-menu-pasta-excluir svg { color:inherit; }

.ath-modal-cor-pasta { width:min(520px, calc(100vw - 24px)); max-width:520px; max-height:calc(100dvh - 24px); border-radius:18px; }
.ath-modal-cor-pasta-head { align-items:flex-start; padding:22px 24px 18px; }
.ath-modal-cor-pasta-sobretitulo { color:#60738B; font-size:10px; font-weight:800; letter-spacing:.12em; }
.ath-modal-cor-pasta-head h2 { margin:5px 0 0; color:#1D2D43; font-size:21px; line-height:1.25; }
.ath-modal-cor-pasta-head p { margin:6px 0 0; color:#66788D; font-size:12px; }
.ath-modal-cor-pasta .ath-modal-corpo { padding:20px 24px 22px; }
.ath-pasta-cor-preview { display:flex; align-items:center; gap:18px; padding:17px 18px; min-height:112px; background:#F5F8FC; border:1px solid #DDE6F0; border-radius:14px; }
.ath-pasta-cor-preview-fichario { position:relative; flex:none; width:58px; height:78px; border-radius:5px 7px 6px 6px; background:linear-gradient(110deg, color-mix(in srgb, var(--ath-pasta-cor) 72%, #172B45), var(--ath-pasta-cor) 22%, color-mix(in srgb, var(--ath-pasta-cor) 82%, #FFFFFF)); box-shadow:inset 4px 0 5px rgba(255,255,255,.18), inset -3px 0 5px rgba(0,0,0,.16), 3px 6px 12px rgba(25,42,65,.2); }
.ath-pasta-cor-preview-fichario::before { content:""; position:absolute; left:7px; top:-5px; width:22px; height:7px; border-radius:4px 4px 0 0; background:var(--ath-pasta-cor); }
.ath-pasta-cor-preview-rotulo { position:absolute; left:10px; right:10px; top:15px; height:32px; border-radius:2px; background:#FFFFFF; box-shadow:inset 0 0 0 1px #D5DFE8; }
.ath-pasta-cor-preview-anel { position:absolute; left:50%; bottom:9px; width:13px; height:13px; transform:translateX(-50%); border:3px solid #D7E1EA; border-radius:50%; background:#263D5B; box-shadow:0 0 0 1px rgba(0,0,0,.28); }
.ath-pasta-cor-preview-texto { display:flex; flex-direction:column; gap:6px; min-width:0; }
.ath-pasta-cor-preview-texto span { color:#718299; font-size:10px; font-weight:800; letter-spacing:.1em; }
.ath-pasta-cor-preview-texto strong { color:#23354B; font-size:15px; line-height:1.35; overflow-wrap:anywhere; }
.ath-pasta-cor-paleta { margin:22px 0 0; padding:0; border:0; min-width:0; }
.ath-pasta-cor-paleta legend { margin:0 0 10px; padding:0; color:#2D4058; font-size:12px; font-weight:800; }
.ath-pasta-cor-opcoes { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px; }
.ath-pasta-cor-opcao { display:flex; align-items:center; gap:10px; min-width:0; padding:9px 11px; border:1px solid #DFE7F0; border-radius:10px; background:#FFFFFF; color:#31435A; font:700 12px var(--glx-font,system-ui); text-align:left; cursor:pointer; transition:background .15s ease,border-color .15s ease,box-shadow .15s ease; }
.ath-pasta-cor-opcao:hover { background:#F5F8FC; border-color:#B9C9DB; }
.ath-pasta-cor-opcao[aria-pressed="true"] { background:#EDF4FB; border-color:#53739B; box-shadow:0 0 0 1px #53739B; }
.ath-pasta-cor-opcao:focus-visible { outline:2px solid #314F79; outline-offset:2px; }
.ath-pasta-cor-amostra { flex:none; width:25px; height:25px; border-radius:7px; background:var(--ath-pasta-cor); box-shadow:inset 0 0 0 1px rgba(0,0,0,.08); }
.ath-pasta-cor-opcao > span:nth-child(2) { flex:1; min-width:0; }
.ath-pasta-cor-opcao svg { flex:none; opacity:0; color:#314F79; }
.ath-pasta-cor-opcao[aria-pressed="true"] svg { opacity:1; }
.ath-modal-cor-pasta .ath-modal-foot { padding:14px 24px; }
@media (max-width:480px) { .ath-modal-cor-pasta-head,.ath-modal-cor-pasta .ath-modal-corpo { padding-left:18px; padding-right:18px; } .ath-pasta-cor-preview { gap:14px; padding:14px; } .ath-pasta-cor-opcao { padding:8px; gap:7px; font-size:11px; } }

.ath-btn-filtro-ativo svg {
  stroke: #2563EB !important;
  color: #2563EB !important;
}

/* ==========================================================================
   ATHENES BIBLIOGRAFIA — NAVEGAÇÃO, BREADCRUMBS E PASTAS ESTILO CRONOS (R2)
   ========================================================================== */

/* Barra de Navegação Superior (Breadcrumbs + Botão Estante Geral + Ações) */
.ath-bib-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 4px 10px 4px;
  margin-bottom: 6px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.ath-bib-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  min-width: 0;
}

.ath-bib-breadcrumb-icon,
.ath-btn-estante-geral > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #314F79;
}

.ath-bib-breadcrumb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #314F79;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ath-bib-breadcrumb-btn:hover {
  background: #EEF4FA;
  color: #1E3A8A;
}

.ath-bib-breadcrumb-btn--active {
  font-weight: 800;
  color: #1E293B;
}

.ath-bib-breadcrumb-btn:focus-visible {
  outline: 2px solid #314F79;
  outline-offset: 1px;
}

.ath-bib-breadcrumb-sep {
  color: #94A3B8;
  font-weight: 400;
  user-select: none;
}

.ath-bib-breadcrumb-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0F172A;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.ath-bib-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Botão Especial "Estante Geral" */
.ath-btn-estante-geral {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ath-btn-estante-geral:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  color: #0F172A;
  transform: translateY(-1px);
}

.ath-btn-estante-geral--on,
.ath-btn-estante-geral--active {
  background: #314F79 !important;
  border-color: #314F79 !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 8px rgba(49, 79, 121, 0.28) !important;
}

.ath-btn-estante-geral .ath-bib-count-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  background: #EEF2F6;
  color: #475569;
  transition: background 0.18s ease, color 0.18s ease;
}

.ath-btn-estante-geral--on .ath-bib-count-pill,
.ath-btn-estante-geral--active .ath-bib-count-pill {
  background: rgba(255, 255, 255, 0.24) !important;
  color: #FFFFFF !important;
}

.ath-btn-nova-pasta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #314F79;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ath-btn-nova-pasta:hover {
  background: #F8FAFC;
  border-color: #314F79;
}

.ath-bib-count-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: #E2E8F0;
  color: #334155;
}

/* Faixa Horizontal de Pastas Estilo Cronos */
.ath-bib-folders-track-container {
  position: relative;
  width: 100%;
  margin-bottom: 14px;
}

.ath-bib-pastas-strip,
.ath-bib-folders-grid,
.ath-bib-pastas-faixa {
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 16px 4px;
  margin-bottom: 12px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
  box-sizing: border-box;
}

.ath-bib-pastas-faixa {
  gap: 24px;
}

.ath-bib-pastas-strip::-webkit-scrollbar,
.ath-bib-folders-grid::-webkit-scrollbar,
.ath-bib-pastas-faixa::-webkit-scrollbar {
  height: 6px;
}

.ath-bib-pastas-strip::-webkit-scrollbar-thumb,
.ath-bib-folders-grid::-webkit-scrollbar-thumb,
.ath-bib-pastas-faixa::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.ath-bib-pastas-strip::-webkit-scrollbar-thumb:hover,
.ath-bib-folders-grid::-webkit-scrollbar-thumb:hover,
.ath-bib-pastas-faixa::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Fichários de registro em pé: lombada, etiqueta e argola. */
.ath-bib-folder-card {
  position: relative;
  min-width: 164px;
  max-width: 164px;
  flex: 0 0 164px;
  height: 204px;
  padding: 0 0 5px 6px;
  color: #FFFFFF;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  outline: none;
  border: none;
  background: transparent !important;
  text-align: left;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}

.ath-bib-folder-card:hover {
  transform: translateY(-5px);
}

.ath-bib-folder-card:focus-visible {
  outline: none;
}

.ath-bib-folder-card:focus-visible .ath-bib-folder-body {
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #314F79;
}

/* Aba Superior Esquerda (Folder Tab) */
.ath-bib-folder-tab {
  position: absolute;
  top: 4px;
  left: 2px;
  width: 10px;
  height: calc(100% - 12px);
  background: color-mix(in srgb, var(--ath-folder-accent, #314F79) 68%, #172B45);
  border: 1px solid color-mix(in srgb, var(--ath-folder-accent, #314F79) 45%, #172B45);
  border-radius: 7px 0 0 7px;
  z-index: 0;
  box-sizing: border-box;
  font-size: 0;
  overflow: hidden;
}

.ath-bib-folder-tab::after {
  content: none;
}

.ath-bib-folder-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 198px;
  min-height: 198px;
  padding: 12px 12px 14px 16px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--ath-folder-accent, #314F79) 76%, #172B45) 0%,
    var(--ath-folder-accent, #314F79) 17%,
    color-mix(in srgb, var(--ath-folder-accent, #314F79) 88%, #FFFFFF) 84%,
    color-mix(in srgb, var(--ath-folder-accent, #314F79) 76%, #172B45) 100%);
  border: 1px solid color-mix(in srgb, var(--ath-folder-accent, #314F79) 70%, #172B45);
  border-radius: 8px 9px 6px 6px;
  box-shadow: inset 3px 0 4px rgba(255,255,255,.16), inset -3px 0 5px rgba(0,0,0,.12), 2px 8px 11px rgba(15,23,42,.18);
  box-sizing: border-box;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.ath-bib-folder-card:hover .ath-bib-folder-body {
  box-shadow: inset 3px 0 4px rgba(255,255,255,.16), inset -3px 0 5px rgba(0,0,0,.12), 3px 12px 16px rgba(15,23,42,.23);
}

/* Estado Ativo (.ath-bib-folder-card--active) */
.ath-bib-folder-card--active {
  transform: translateY(-3px);
}

.ath-bib-folder-card--active .ath-bib-folder-tab {
  border-color: var(--ath-folder-accent, #314F79);
}

.ath-bib-folder-card--active .ath-bib-folder-body {
  box-shadow: inset 3px 0 4px rgba(255,255,255,.16), inset -3px 0 5px rgba(0,0,0,.12), 0 0 0 2px #FFFFFF, 0 0 0 4px var(--ath-folder-accent, #314F79), 3px 12px 16px rgba(15,23,42,.2);
}

/* Marcador visual luminoso na aba ativa */
.ath-bib-folder-card--active .ath-bib-folder-tab::before {
  content: none;
}

/* Elementos Internos do Card */
.ath-bib-folder-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ath-bib-folder-icon-wrap,
.ath-bib-folder-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.18);
  color: #FFFFFF;
  flex-shrink: 0;
}

.ath-bib-folder-top-actions,
.ath-bib-folder-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Badge de Contagem de Obras */
.ath-bib-folder-count,
.ath-bib-folder-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  color: #FFFFFF;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Botão de Opções da Pasta (⋯) */
.ath-bib-folder-opt-btn {
  background: transparent;
  border: none;
  color: currentColor;
  opacity: 0.6;
  font-size: 16px;
  line-height: 1;
  padding: 2px 5px;
  cursor: pointer;
  border-radius: 4px;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.ath-bib-folder-opt-btn:hover {
  opacity: 1;
  background: var(--ath-folder-badge-bg, rgba(255, 255, 255, 0.4));
}

.ath-bib-folder-opt-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

/* Bloco Informativo de Texto */
.ath-bib-folder-info {
  margin: 12px 0 0 0;
  min-width: 0;
  min-height: 82px;
  padding: 9px 7px;
  background: #FFFFFF;
  border: 1px solid #D9E0E8;
  border-left: 3px solid #E1E7EE;
  border-radius: 2px;
  box-shadow: 0 2px 3px rgba(0,0,0,.12);
}

.ath-bib-folder-title,
.ath-bib-folder-name {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.25;
  color: #1E293B;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow-wrap: anywhere;
}

.ath-bib-folder-sub,
.ath-bib-folder-desc {
  display: block;
  font-size: 10px;
  opacity: 1;
  color: #64748B;
  font-weight: 600;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Rodapé do Card */
.ath-bib-folder-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  min-height: 26px;
  padding-top: 0;
  border-top: 0;
  font-size: 10px;
}

.ath-bib-folder-footer::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 15px;
  width: 21px;
  height: 21px;
  transform: translateX(-50%);
  border: 4px solid #C7D0DA;
  border-radius: 50%;
  background: radial-gradient(circle, #192A3D 0 46%, #415265 60%, #192A3D 75%);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.7), 0 1px 2px rgba(0,0,0,.4);
}

.ath-bib-folder-color-indicator,
.ath-bib-folder-color-dot {
  width: 0;
  height: 0;
  visibility: hidden;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.ath-bib-folder-tag-comp,
.ath-bib-tag-comp {
  font-size: 9.5px;
  font-weight: 700;
  opacity: 1;
  color: #FFFFFF;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Estado Drag & Drop Target (Arrastar Livro para Pasta) */
.ath-bib-folder-card.ath-drop-target-over,
.ath-drop-target-over {
  transform: translateY(-4px) scale(1.02);
}

.ath-bib-folder-card.ath-drop-target-over .ath-bib-folder-tab,
.ath-bib-folder-card.ath-drop-target-over .ath-bib-folder-body,
.ath-drop-target-over .ath-bib-folder-tab,
.ath-drop-target-over .ath-bib-folder-body {
  border-color: #2F7BD0 !important;
  outline: 2px dashed #2F7BD0;
  outline-offset: -2px;
}

.ath-bib-folder-card.ath-drop-target-over .ath-bib-folder-body,
.ath-drop-target-over .ath-bib-folder-body {
  box-shadow: 0 12px 28px rgba(47, 123, 208, 0.28) !important;
}

/* Responsividade */
@media (max-width: 768px) {
  .ath-bib-pastas-strip,
  .ath-bib-folders-grid,
  .ath-bib-pastas-faixa {
    gap: 24px;
    padding-bottom: 12px;
  }
  .ath-bib-folder-card {
    min-width: 164px;
    flex: 0 0 164px;
  }
  .ath-bib-nav-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .ath-bib-nav-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }
}

