#workspace-content .editor-index {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  box-shadow: none;
  background: var(--workspace-canvas);
}
#editor .survey-report-menu { position: relative; margin: 0; padding: 0; border: 0; background: transparent; }
#editor .editor-index > a, #editor .survey-report-menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: var(--control-height);
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--text-muted);
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.survey-report-menu > summary::-webkit-details-marker { display: none; }
.survey-report-menu > summary .ui-icon { width: .875rem; height: .875rem; margin: 0; }
#editor .survey-report-menu[open] > summary { margin-bottom: 0; }
#editor .survey-report-menu > summary:focus-visible { outline: 2px solid var(--workspace-focus); outline-offset: -3px; border-radius: var(--radius-control); }
.survey-report-menu[open] > summary .ui-icon { transform: rotate(180deg); }
#editor .editor-index > [aria-current], #editor .survey-report-menu:has([aria-current]) > summary {
  border-bottom-color: var(--accent);
  color: var(--text-link);
}
#editor .editor-index > a:hover, #editor .survey-report-menu > summary:hover { background: var(--navigation-hover); }
.survey-report-menu .action-popover {
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  width: min(24rem, calc(100vw - 2rem));
  padding: var(--space-3);
}
.report-destinations { min-width: 0; }
.report-destinations > span { display:block; padding: var(--space-1) var(--space-3); font-size: var(--type-caption); color: var(--text-muted); }
#editor .report-destinations a[aria-current] { background: var(--navigation-current); color: var(--text-link); }
@media (max-width: 32rem) {
  #workspace-content .editor-index { gap: 0; justify-content: space-between; }
  #editor .editor-index > a, #editor .survey-report-menu > summary { padding-inline: var(--space-1); white-space:nowrap; }
  .survey-report-menu .action-popover { gap: var(--space-1); padding: var(--space-2); }
}
.workspace-report-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
#workspace-content .workspace-report-heading h2 { margin: 0; }
.workspace-report-heading > button { margin: 0; }
.workspace-survey-drill {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--control-height);
  padding-inline: var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
  font-size: var(--type-label);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.workspace-survey-drill:hover { background: var(--surface-raised); }
