.knowledge-page-stack {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.knowledge-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 40px;
  gap: 32px;
}

.knowledge-panel-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 32px;
  padding: 0;
}

.knowledge-header {
  text-align: center;
  margin-bottom: 16px;
}

.knowledge-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.knowledge-subtitle {
  font-size: 16px;
  color: #94A3B8;
  margin: 0;
}

.knowledge-upload-section {
  display: flex;
  justify-content: center;
  margin: 32px 0;
}

.upload-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px dashed rgba(124, 58, 237, 0.3);
  border-radius: 24px;
  padding: 48px 64px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  transition: all 0.3s ease;
}

.upload-card:hover {
  border-color: rgba(124, 58, 237, 0.6);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}

.upload-icon {
  margin-bottom: 24px;
}

.upload-icon svg {
  stroke: #A78BFA;
}

.upload-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #E2E8F0;
}

.upload-desc {
  font-size: 14px;
  color: #94A3B8;
  margin: 0 0 24px 0;
}

.upload-button {
  background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.upload-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

.upload-hint {
  font-size: 12px;
  color: #64748B;
  margin: 0;
}

.knowledge-list-section {
  margin-top: 48px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 24px 0;
  color: #E2E8F0;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.document-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.document-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.15);
}

.document-icon {
  font-size: 32px;
}

.document-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #E2E8F0;
}

.document-info p {
  font-size: 12px;
  color: #94A3B8;
  margin: 0;
}


h1, h2, h3, h4, h5, h6,
.knowledge-title,
.section-title,
.upload-title {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* gray-blue revamp: consolidated final theme layer */

