#portfolioSection {
  background: #ffffff;
  border-color: #e2e8f0;
}

#portfolioSection .portfolio-heading-copy {
  width: 100%;
}

#portfolioSection .portfolio-heading-inline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 18px;
}

body.ptln-page #portfolioSection .portfolio-heading-inline > .eyebrow,
body.ptln-page #portfolioSection .portfolio-heading-inline .section-title-row h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}

body.ptln-page #portfolioSection .portfolio-heading-inline > .eyebrow {
  font-weight: 700;
}

#portfolioSection .portfolio-heading-inline .section-title-row {
  min-width: 0;
}

body.ptln-page #portfolioSection .portfolio-heading-inline .section-title-row h2 {
  font-weight: 500;
  color: #52657d;
  overflow-wrap: anywhere;
}

#portfolioSection .section-title-row {
  align-items: center;
  flex-wrap: wrap;
}

#portfolioSection .section-title-row .scoring-help {
  margin: 0 0 0 auto;
  max-width: 100%;
  min-width: 0;
}

#portfolioSection .section-title-row .scoring-help .help-icon-button {
  flex-shrink: 0;
}

#portfolioSection .section-title-row .scoring-help span {
  overflow-wrap: anywhere;
}

#portfolioSection .portfolio-category-section-row td {
  background: #374151;
  border-color: #4b5563;
  box-shadow: none;
  color: #ffffff;
}

#portfolioSection .portfolio-group-row td,
#portfolioSection .portfolio-inline-add-row td {
  background: #e8f1fc;
  border-color: #c7dbf3;
}

#portfolioSection .portfolio-group-name {
  color: #1e40af;
}

#portfolioSection .portfolio-data-row .portfolio-item-heading strong {
  color: #0f172a;
}

#portfolioSection .portfolio-entry-preview-grade > summary {
  background: #f1f5f9;
  box-shadow: inset 0 -1px 0 #dbe5ed;
  flex-wrap: wrap;
}

#portfolioSection .portfolio-entry-preview-grade > summary .portfolio-preview-category {
  color: #64748b;
  font-size: 11px;
  min-width: 0;
  overflow-wrap: anywhere;
}

#portfolioSection .portfolio-entry-preview-grade > summary .portfolio-preview-identity {
  flex-shrink: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

#portfolioSection .portfolio-entry-preview-grade > summary .portfolio-preview-separator {
  color: #94a3b8;
}

#portfolioSection .portfolio-entry-preview.has-grade-context[aria-label]::before {
  content: none;
  display: none;
}

#portfolioSection .portfolio-data-row td,
#portfolioSection .portfolio-entry-preview-row td {
  background: #ffffff;
}

#portfolioSection .portfolio-data-row:hover td {
  background: #f8fafc;
}

#portfolioSection .portfolio-item-heading [data-portfolio-row-index] {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

#portfolioSection .portfolio-data-row .timeline-chip:not(.is-complete) {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

#portfolioSection .timeline-chip:not(.is-complete) strong {
  color: #0f172a;
}

#portfolioSection .timeline-chip:not(.is-complete) span,
#portfolioSection .timeline-chip:not(.is-complete) small {
  color: #64748b;
}

#portfolioSection .portfolio-data-row .timeline-chip.is-complete {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

#portfolioSection .timeline-chip.is-complete strong,
#portfolioSection .timeline-chip.is-complete span,
#portfolioSection .timeline-chip.is-complete small {
  color: #166534;
}

#portfolioSection .timeline-chip.is-disabled strong,
#portfolioSection .timeline-chip.is-disabled span {
  color: #94a3b8;
}

#portfolioSection .timeline-chip:not(.is-readonly):not(.is-disabled):hover {
  border-color: #2563eb;
}

#portfolioSection .grade-toggle-button.is-active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

#portfolioSection .portfolio-welcome-card,
#portfolioSection .portfolio-progress-card,
#portfolioSection .student-action-panel,
#portfolioSection .student-action-card,
#portfolioSection .student-summary-card,
#portfolioSection .timeline-panel,
#portfolioSection .timeline-card,
#portfolioSection .portfolio-prep-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

#gradeDetailModal .editor-note {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}
