/* A separate number column keeps wrapped syllabus text aligned. */
.topic-row .topic-label,.topic label .topic-label {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:baseline;
  gap:8px;
  min-width:0;
}
.topic-row .topic-label.has-code,.topic label .topic-label.has-code {
  grid-template-columns:minmax(3.5em,max-content) minmax(0,1fr);
}
.topics-pop .topic-row .topic-label.has-code > .topic-code,
.pt-outline .topic-row .topic-label.has-code > .topic-code,
.topic label .topic-label > .topic-code {
  min-width:0;
  margin:0;
  font-weight:500;
  font-variant-numeric:tabular-nums;
  color:var(--dash-muted,var(--muted,#586574));
  white-space:nowrap;
}
/* Cap the code column so a long key can never squeeze the title into a word-per-line strip. */
.topic-row .topic-label.has-code > .topic-code {max-width:8.5em;white-space:normal;overflow-wrap:anywhere;}
.topic-label .topic-copy {min-width:0;overflow-wrap:break-word;}
.topic-row .topic-label .topic-name {display:inline;}
.topic-label .topic-code-detail,.path .topic-copy .topic-code-detail {
  display:block;
  margin-top:3px;
  font-size:.85em;
  font-weight:400;
  color:var(--dash-muted,var(--muted,#586574));
  overflow-wrap:anywhere;
}
.topic-label .topic-tier-badge,.path .topic-copy .topic-tier-badge {
  display:inline-block;
  font-size:.75em;
  font-weight:500;
  color:var(--dash-muted,var(--muted,#586574));
  white-space:nowrap;
}
@media(max-width:600px) {
  .topic-row .topic-label.has-code,.topic label .topic-label.has-code {
    grid-template-columns:minmax(2em,max-content) minmax(0,1fr);
    gap:6px;
  }
  .topic-row .topic-label.has-code > .topic-code {max-width:6.5em;}
}
/* The wizard's grid rules must not override search's hidden branches. */
.dash-app .studio-wizard .topic-item[hidden],
.dash-app .studio-wizard .topic-children[hidden] {display:none!important;}
/* Board/subject switch: the menu closes at once; the tree shows this until its catalog lands. */
.topic-tree .catalog-pending,.topics-pop .catalog-pending {padding:14px 12px;color:var(--dash-muted,var(--muted,#586574));}
.smart-workspace[data-catalog-pending] .smart-grid {opacity:.55;pointer-events:none;transition:opacity .15s ease-out;}
