.term-plan-strands {
  display: grid;
  gap: 16px;
}

.term-plan-strands--period {
  margin: 0 12px 14px;
}

.term-plan-other-courses .term-plan-strands {
  margin-top: 12px;
}

.term-plan-strand {
  min-width: 0;
  --strand-accent: hsl(var(--term-plan-strand-hue, 215) 23% 57%);
  --strand-active: hsl(var(--term-plan-strand-hue, 215) 29% 38%);
}

.term-plan-strand__heading {
  margin: 0 0 8px;
  padding-inline-start: 8px;
  border-inline-start: 3px solid var(--strand-accent);
  color: #34413b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.term-plan-strand .term-plan-create-topics {
  margin: 0;
}

.term-plan-strand .term-plan-create-topics .q-checkbox,
.hass-plan-period .term-plan-strand .hass-plan-topic,
.term-plan-strand.term-plan-create-knowledge-group {
  border: 2px solid var(--strand-accent);
  background: #fff;
  color: #34413b;
}

.term-plan-strand .science-plan-create-knowledge .q-checkbox {
  border: 1px solid color-mix(in srgb, var(--strand-accent) 42%, white);
  background: #fff;
}

.hass-plan-period .term-plan-strand .hass-plan-topic {
  margin: 0 0 8px;
}

.hass-plan-period .term-plan-strand .hass-plan-topic:last-child {
  margin-bottom: 0;
}

.term-plan-strand .hass-plan-topic summary {
  color: #34413b;
}

.term-plan-strand .hass-plan-topic summary small,
.term-plan-strand .science-plan-topic-expansion__arrow {
  color: #5d6b63;
}

.term-plan-strand :is(.term-plan-create-topics, .science-plan-create-knowledge) .q-checkbox[aria-checked='true'] {
  border-color: var(--strand-accent);
  background: color-mix(in srgb, var(--strand-accent) 22%, white);
}

.term-plan-strand :is(.term-plan-create-topics, .science-plan-create-knowledge) .q-checkbox[aria-checked='true'] .q-checkbox__icon {
  color: var(--strand-active);
}

.term-plan-strand :is(.term-plan-create-topics, .science-plan-create-knowledge) .q-checkbox:focus-visible,
.term-plan-strand .hass-plan-topic > summary:focus-visible {
  outline: 2px solid var(--strand-active);
  outline-offset: 2px;
}
