/* 两个制作台页面共用的顶部导航；颜色写死，避免受各页 :root 变量影响。 */
.topbar {
  height: 64px;
  padding: 0 32px;
  gap: 24px;
  background: #fff;
  border-bottom: 1px solid #e0e2e6;
}
.brand {
  gap: 9px;
  white-space: nowrap;
}
.brand-weight {
  font-weight: 450;
}
.studio-mark {
  color: #202226;
  font-size: var(--text-ui-xl);
}
.studio-nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 28px;
}
.studio-nav a {
  display: flex;
  align-items: center;
  color: #626871;
  border-bottom: 2px solid transparent;
}
.studio-nav a[aria-current] {
  color: #202226;
  border-color: #202226;
}
#ai-open {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
}
#ai-summary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.connection-dot {
  width: 6px;
  height: 6px;
  background: #737982;
  border-radius: 50%;
  flex-shrink: 0;
}
body[data-ai-ready="true"] .connection-dot {
  background: #29754d;
}
.topbar .tool-button {
  background: transparent;
  color: #626871;
  border: 1px solid transparent;
  padding: 6px 8px;
  border-radius: 5px;
  font: inherit;
  min-height: 36px;
  cursor: pointer;
}
.topbar .tool-button:hover {
  background: #eceef1;
  color: #202226;
}
@media (max-width: 1000px) {
  .topbar {
    padding: 0 20px;
    gap: 16px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 60px;
    padding: 0 16px;
    gap: 12px;
  }
  .studio-nav {
    display: none;
  }
  #ai-open {
    max-width: 160px;
    padding: 4px;
    font-size: var(--text-ui-xs);
  }
}
