/* ==========================================================================
   CCST Equipe - Estilização Moderna, Hierárquica e Responsiva
   ========================================================================== */

:root {
  --ccst-primary: #004b8d;
  --ccst-primary-dark: #002b50;
  --ccst-primary-light: #e8f1f9;
  --ccst-accent: #0088cc;
  --ccst-lattes: #003366;
  --ccst-orcid: #a6ce39;
  --ccst-linkedin: #0077b5;
  --ccst-email: #d9381e;
  --ccst-cv: #2e7d32;
  --ccst-gray-bg: #f8fafc;
  --ccst-card-bg: #ffffff;
  --ccst-text-main: #1e293b;
  --ccst-text-muted: #64748b;
  --ccst-border: #e2e8f0;
  --ccst-radius: 12px;
  --ccst-shadow: 0 4px 16px rgba(0, 43, 80, 0.08);
  --ccst-shadow-hover: 0 12px 28px rgba(0, 43, 80, 0.16);
  --ccst-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ccst-equipe-wrapper {
  width: 100%;
  margin: 10px 0 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ccst-text-main);
}

/* --- Barra de Navegação Rápida entre Seções Hierárquicas --- */
.ccst-hierarchy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #f1f5f9;
  padding: 12px 16px;
  border-radius: var(--ccst-radius);
  margin-bottom: 24px;
  border: 1px solid #e2e8f0;
}

.ccst-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155 !important;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  text-decoration: none !important;
  transition: var(--ccst-transition);
}

.ccst-nav-item:hover {
  background: var(--ccst-primary);
  color: #ffffff !important;
  border-color: var(--ccst-primary);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 75, 141, 0.18);
}

.ccst-nav-item.highlight {
  background: var(--ccst-primary-light);
  border-color: #bad8f2;
  color: var(--ccst-primary) !important;
}

/* --- Blocos de Seções Hierárquicas --- */
.ccst-section-block {
  background: #ffffff;
  border: 1px solid var(--ccst-border);
  border-radius: var(--ccst-radius);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.ccst-section-block.highlight-section {
  border-color: #bad8f2;
  box-shadow: 0 4px 18px rgba(0, 75, 141, 0.08);
}

.ccst-section-header {
  display: block;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f1f5f9;
}

.ccst-section-icon {
  display: none !important;
}

.ccst-section-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--ccst-primary-dark) !important;
  margin: 0 0 4px !important;
  line-height: 1.3 !important;
}

.ccst-section-subtitle {
  font-size: 13px;
  color: var(--ccst-text-muted);
  margin: 0;
}

.ccst-section-subtitle a {
  color: var(--ccst-accent);
  font-weight: 600;
  text-decoration: underline;
}

/* --- Cards de Chefia / Destaques com Foto --- */
.ccst-lead-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.ccst-lead-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--ccst-transition);
}

.ccst-lead-card:hover {
  border-color: var(--ccst-accent);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.ccst-lead-card.single {
  max-width: 520px;
}

.ccst-lead-avatar-wrap {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  background: #e2e8f0;
}

.ccst-lead-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ccst-lead-content {
  flex-grow: 1;
  min-width: 0;
}

.ccst-lead-badge {
  display: inline-block;
  background: var(--ccst-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.ccst-lead-badge.secondary {
  background: #475569;
}

.ccst-lead-name {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ccst-primary-dark);
  margin: 0 0 6px;
}

.ccst-lead-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
}

.ccst-meta-link {
  color: var(--ccst-primary) !important;
  font-weight: 600;
}

.ccst-meta-info {
  color: var(--ccst-text-muted);
}

.ccst-meta-lattes {
  color: var(--ccst-lattes) !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ccst-meta-linkedin {
  color: var(--ccst-linkedin) !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* --- Colunas Informativas com Foto (Secretaria / Web) --- */
.ccst-info-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.ccst-info-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--ccst-transition);
}

.ccst-info-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ccst-info-avatar-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
}

.ccst-info-body {
  flex-grow: 1;
  font-size: 13px;
  line-height: 1.45;
}

.ccst-info-body strong {
  display: block;
  font-size: 14px;
  color: var(--ccst-primary-dark);
  margin-bottom: 3px;
}

.ccst-info-body a {
  color: var(--ccst-primary);
  font-weight: 600;
}

/* --- Controles: Busca e Filtros de Servidores --- */
.ccst-equipe-controls {
  background: #f8fafc;
  border: 1px solid var(--ccst-border);
  border-radius: var(--ccst-radius);
  padding: 18px 20px;
  margin-bottom: 24px;
}

.ccst-search-wrapper {
  position: relative;
  margin-bottom: 14px;
}

.ccst-search-input {
  width: 100% !important;
  height: 46px !important;
  padding: 10px 45px 10px 42px !important;
  font-size: 14.5px !important;
  border: 2px solid #cbd5e1 !important;
  border-radius: 24px !important;
  background-color: #ffffff !important;
  transition: var(--ccst-transition) !important;
  box-sizing: border-box !important;
  outline: none !important;
}

.ccst-search-input:focus {
  border-color: var(--ccst-accent) !important;
  box-shadow: 0 0 0 4px rgba(0, 136, 204, 0.15) !important;
}

.ccst-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ccst-text-muted);
  font-size: 16px;
  pointer-events: none;
}

.ccst-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ccst-text-muted);
  font-size: 18px;
  cursor: pointer;
  display: none;
  padding: 4px;
}

.ccst-search-clear:hover {
  color: var(--ccst-email);
}

.ccst-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ccst-filter-btn {
  background: #ffffff;
  color: var(--ccst-text-main);
  border: 1px solid #cbd5e1;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--ccst-transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ccst-filter-btn:hover {
  background: #f1f5f9;
  color: var(--ccst-primary);
  border-color: #94a3b8;
}

.ccst-filter-btn.active {
  background: var(--ccst-primary);
  color: #ffffff;
  border-color: var(--ccst-primary);
  box-shadow: 0 2px 6px rgba(0, 75, 141, 0.25);
}

.ccst-pill-count {
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
}

.ccst-filter-btn.active .ccst-pill-count {
  background: rgba(255, 255, 255, 0.25);
}

.ccst-results-info {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ccst-text-muted);
  display: flex;
  justify-content: space-between;
}

/* --- Grid de Cards de Pesquisadores --- */
.ccst-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.ccst-member-card {
  background: var(--ccst-card-bg);
  border: 1px solid var(--ccst-border);
  border-radius: var(--ccst-radius);
  overflow: hidden;
  box-shadow: var(--ccst-shadow);
  transition: var(--ccst-transition);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.ccst-member-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ccst-shadow-hover);
  border-color: #cbd5e1;
}

.ccst-card-header {
  position: relative;
  padding: 22px 18px 12px;
  text-align: center;
  background: linear-gradient(180deg, #f0f7fc 0%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ccst-avatar-wrap {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  padding: 4px;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  transition: var(--ccst-transition);
}

.ccst-member-card:hover .ccst-avatar-wrap {
  border-color: var(--ccst-accent);
  transform: scale(1.04);
}

.ccst-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* BONEQUINHO DE PERFIL DEFAULT (AVATAR SVG) */
.ccst-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  color: #004b8d;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.ccst-avatar-svg {
  width: 54px;
  height: 54px;
  color: #475569;
  opacity: 0.85;
}

.ccst-card-badge {
  display: inline-block;
  background: var(--ccst-primary-light);
  color: var(--ccst-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 9px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.ccst-card-name {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ccst-primary-dark);
  margin: 0 0 4px;
  line-height: 1.3;
}

.ccst-card-cargo {
  font-size: 12px;
  color: var(--ccst-text-muted);
  line-height: 1.35;
  min-height: 32px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ccst-card-body {
  padding: 10px 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.ccst-card-lines {
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ccst-card-footer {
  padding: 10px 16px 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fdfdfd;
}

.ccst-quick-links {
  display: flex;
  gap: 6px;
}

.ccst-quick-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: var(--ccst-transition) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
  flex-shrink: 0 !important;
}

.ccst-quick-btn:hover {
  transform: scale(1.15) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
  filter: brightness(1.1) !important;
}

.ccst-quick-btn svg {
  width: 15px !important;
  height: 15px !important;
  fill: #ffffff !important;
  display: block !important;
  pointer-events: none !important;
}

.ccst-quick-btn.email { background-color: #d9381e !important; }
.ccst-quick-btn.lattes { background-color: #003366 !important; }
.ccst-quick-btn.orcid { background-color: #a6ce39 !important; }
.ccst-quick-btn.linkedin { background-color: #0077b5 !important; }
.ccst-quick-btn.cv, .ccst-quick-btn.gdrive { background-color: #0f9d58 !important; }

.ccst-view-profile-btn {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ccst-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  transition: var(--ccst-transition);
}

.ccst-view-profile-btn:hover {
  background: var(--ccst-primary-light);
  color: var(--ccst-accent);
}

/* --- TABELAS / LISTAS DE TERCEIRIZADOS E BOLSISTAS --- */
.ccst-table-wrapper {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.ccst-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.ccst-data-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 10px 14px;
  border-bottom: 2px solid #e2e8f0;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.5px;
}

.ccst-data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.ccst-data-table tr:last-child td {
  border-bottom: none;
}

.ccst-data-table tr:hover td {
  background-color: #f8fafc;
}

.ccst-table-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ccst-primary-dark);
}

.ccst-table-avatar-svg {
  width: 22px;
  height: 22px;
  color: #94a3b8;
  flex-shrink: 0;
}

.ccst-table-email {
  color: var(--ccst-primary) !important;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ccst-table-phone {
  color: #64748b;
  font-size: 12.5px;
}

.ccst-table-lattes-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: var(--ccst-lattes) !important;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  text-decoration: none !important;
  transition: var(--ccst-transition);
}

.ccst-table-lattes-btn:hover {
  background: var(--ccst-lattes);
  color: #ffffff !important;
  border-color: var(--ccst-lattes);
}

.ccst-empty-dash {
  color: #cbd5e1;
}

/* --- ACORDEÃO DE ALUNOS PGCST POR TURMAS --- */
.ccst-turmas-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ccst-accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  transition: var(--ccst-transition);
}

.ccst-accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #f8fafc;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--ccst-primary-dark);
  text-align: left;
  transition: var(--ccst-transition);
}

.ccst-accordion-header:hover {
  background: #eef5fb;
  color: var(--ccst-primary);
}

.ccst-accordion-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ccst-accordion-count {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 12px;
}

.ccst-accordion-icon {
  color: #64748b;
  transition: transform 0.25s ease;
}

.ccst-accordion-item.open .ccst-accordion-icon {
  transform: rotate(180deg);
}

.ccst-accordion-content {
  display: none !important;
  padding: 16px 18px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.ccst-accordion-item.open > .ccst-accordion-content {
  display: block !important;
}

.ccst-teses-banner {
  background: #f0f7fc;
  border: 1px solid #cce3f5;
  border-radius: 6px;
  padding: 8px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ccst-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ccst-teses-banner a {
  font-weight: 700;
  color: var(--ccst-primary) !important;
  text-decoration: underline !important;
}

.ccst-students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}

.ccst-student-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12.5px;
}

.ccst-student-avatar-svg {
  width: 16px;
  height: 16px;
  color: #94a3b8;
  margin-right: 6px;
  flex-shrink: 0;
}

.ccst-student-name {
  flex-grow: 1;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ccst-student-lattes {
  color: var(--ccst-lattes) !important;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  background: #eef2f6;
  border-radius: 4px;
  text-decoration: none !important;
  flex-shrink: 0;
  margin-left: 6px;
}

.ccst-student-lattes:hover {
  background: var(--ccst-lattes);
  color: #ffffff !important;
}

/* --- MODAL DE PERFIL COMPLETO --- */
.ccst-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.7) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  z-index: 9999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.ccst-modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.ccst-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ccst-modal-overlay.active .ccst-modal-card {
  transform: translateY(0) scale(1);
}

.ccst-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  color: #334155;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ccst-transition);
  z-index: 10;
}

.ccst-modal-close-btn:hover {
  background: var(--ccst-email);
  color: #ffffff;
  transform: rotate(90deg);
}

.ccst-modal-header {
  background: linear-gradient(135deg, #002b50 0%, #004b8d 100%);
  color: #ffffff;
  padding: 30px 26px 22px;
  display: flex;
  gap: 18px;
  align-items: center;
}

.ccst-modal-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  flex-shrink: 0;
}

.ccst-modal-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  color: #004b8d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ccst-modal-header-info {
  flex-grow: 1;
}

.ccst-modal-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 12px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.ccst-modal-name {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #ffffff;
  line-height: 1.25;
}

.ccst-modal-cargo {
  font-size: 13.5px;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.3;
}

.ccst-modal-actions {
  background: #f8fafc;
  padding: 12px 26px;
  border-bottom: 1px solid var(--ccst-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ccst-action-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
  color: #ffffff !important;
  transition: var(--ccst-transition);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ccst-action-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.ccst-action-badge.email { background: var(--ccst-email); }
.ccst-action-badge.lattes { background: var(--ccst-lattes); }
.ccst-action-badge.orcid { background: var(--ccst-orcid); }
.ccst-action-badge.linkedin { background: var(--ccst-linkedin); }
.ccst-action-badge.cv { background: var(--ccst-cv); }

.ccst-modal-body {
  padding: 22px 26px;
}

.ccst-modal-section {
  margin-bottom: 20px;
}

.ccst-modal-section:last-child {
  margin-bottom: 0;
}

.ccst-modal-section-title {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--ccst-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.ccst-modal-section-title i {
  color: var(--ccst-accent);
}

.ccst-modal-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: #334155;
  margin: 0;
  white-space: pre-line;
}

.ccst-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.ccst-tag-item {
  background: var(--ccst-primary-light);
  color: var(--ccst-primary-dark);
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid #cce3f5;
  line-height: 1.35;
}

/* Responsividade */
@media (max-width: 640px) {
  .ccst-hierarchy-nav {
    flex-direction: column;
  }
  .ccst-modal-header {
    flex-direction: column;
    text-align: center;
    padding: 22px 16px;
  }
  .ccst-modal-actions {
    justify-content: center;
  }
  .ccst-modal-body {
    padding: 16px;
  }
}
