/* Compact workspace navigation. Business panels remain owned by page modules. */
.workspace-page-header,
.workspace-context-bar {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding: 8px 0 10px;
  border-bottom: 1px solid rgba(142, 165, 190, .24);
}

.workspace-page-header h1,
.workspace-context-label {
  margin: 0;
  color: #eaf2fb;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
}

.workspace-page-actions,
.workspace-context-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.workspace-page-actions .btn {
  min-height: 32px;
}

.workspace-tab {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #9eb1c6;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
}

.workspace-tab:hover {
  border-color: rgba(120, 180, 247, .38);
  color: #eaf2fb;
}

.workspace-tab.is-active {
  border-color: rgba(99, 215, 223, .5);
  background: rgba(99, 215, 223, .12);
  color: #d9fbfd;
}

body[data-aiflo-workspace="candidates"] .topbar-title::before { content: "候选 · "; color: #78b4f7; }
body[data-aiflo-workspace="research"] .topbar-title::before { content: "研究 · "; color: #73daca; }
body[data-aiflo-workspace="portfolio"] .topbar-title::before { content: "组合 · "; color: #63d7df; }
body[data-aiflo-workspace="review"] .topbar-title::before { content: "复盘 · "; color: #d2a8ff; }

body[data-aiflo-page="analysis"] #page-analysis > .card > .card-header .card-title {
  display: none;
}

body[data-aiflo-page="analysis"] #page-analysis > .card > .card-header {
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .workspace-page-header,
  .workspace-context-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .workspace-page-actions,
  .workspace-context-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
