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

.knowledge-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
  gap: 24px;
  border-color: rgba(148, 163, 184, 0.24);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

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

.knowledge-header {
  text-align: left;
  margin: 0;
}

.knowledge-title {
  margin: 0 0 8px;
  color: #12355f;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}

.knowledge-subtitle {
  margin: 0;
  color: #486985;
  font-size: 14px;
  line-height: 1.6;
}

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

.upload-card {
  width: min(520px, 100%);
  padding: 36px 40px;
  text-align: center;
  border: 1px dashed rgba(59, 130, 246, 0.34);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.upload-card:hover {
  border-color: rgba(37, 99, 235, 0.56);
  background: #f8fbff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.12);
}

.upload-icon {
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 12px;
  background: #e0edff;
  color: #2563eb;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

.upload-icon svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
}

.upload-title {
  margin: 0 0 10px;
  color: #12355f;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.upload-desc {
  margin: 0 0 22px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.upload-button {
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid rgba(29, 78, 216, 0.18);
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #0f6eea);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  margin-bottom: 14px;
}

.upload-button:hover:not(:disabled) {
  border-color: rgba(29, 78, 216, 0.32);
  background: linear-gradient(135deg, #1d4ed8, #075bd8);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.upload-hint {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.knowledge-list-section {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.section-title {
  margin: 0;
  color: #12355f;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

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

.document-card {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 10px;
  background: #ffffff;
  color: #12355f;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}

.document-card:hover {
  border-color: rgba(37, 99, 235, 0.42);
  background: #f8fbff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.08);
}

.document-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: #e0edff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
}

.document-info {
  min-width: 0;
}

.document-info h4 {
  margin: 0 0 4px;
  color: #12355f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.document-info p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

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