/* Shared activities entry: main site, tool workspace and documentation. */
.topbar-inner > .activities-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(216, 181, 104, .38);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(216, 181, 104, .15), rgba(216, 181, 104, .05));
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  transition: background .18s, border-color .18s;
}
.topbar-inner > .activities-link:hover {
  border-color: var(--brand);
  background: rgba(216, 181, 104, .2);
  text-decoration: none;
}
.topbar-inner > .activities-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}
.topbar-inner > .activities-link span { display: inline; }
.activities-icon { width: 20px; height: 20px; flex: none; }
.activities-arrow { width: 12px; height: 12px; flex: none; opacity: .7; }
.topbar .topbar-inner, .guide-topbar .topbar-inner { gap: 16px; }
.topbar .global-tools, .topbar .top-actions { margin-left: auto; }
.guide-topbar .topbar-inner { flex-wrap: wrap; }
.guide-topbar .guide-nav a { white-space: nowrap; }
.topbar .top-actions { flex-wrap: wrap; justify-content: flex-end; }
/* Let the tool iframe use the space remaining below responsive navigation. */
body.workspace-open { display: flex; flex-direction: column; height: 100dvh; min-height: 0; }
body.workspace-open > .topbar, body.workspace-open > .panda-announcement { flex: none; }
body.workspace-open .workspace-view:not([hidden]) { display: flex; flex-direction: column; flex: 1; min-height: 0; }
body.workspace-open .workspace-bar { flex: none; }
body.workspace-open .workspace-view iframe { flex: 1; min-height: 0; height: auto; }
@media (max-width: 1180px) {
  .guide-topbar .topbar-inner { flex-wrap: wrap; }
  .guide-topbar .guide-nav { order: 3; width: 100%; margin: 0; }
  .guide-topbar .topbar-actions { margin-left: auto; }
  .topbar .topbar-inner { height: auto; min-height: 78px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .topbar .topbar-inner, .guide-topbar .topbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 10px;
    padding: 12px 16px;
  }
  .topbar .brand, .guide-topbar .guide-brand { min-width: 0; gap: 8px; }
  .topbar .brand img, .guide-topbar .guide-brand img { width: 36px; height: 36px; border-radius: 10px; flex: none; }
  .topbar .brand span, .guide-topbar .guide-brand span { display: block; font-size: 11px; line-height: 1.5; }
  .topbar .brand small, .guide-topbar .guide-brand small { display: none; }
  .topbar-inner > .activities-link { min-height: 36px; gap: 5px; padding: 0 9px; font-size: 12px; }
  .activities-arrow { display: none; }
  .topbar .global-tools, .topbar .top-actions, .guide-topbar .topbar-actions {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .guide-topbar .guide-nav { grid-column: 1 / -1; }
  .guide-topbar .topbar-actions .tool-button { width: 36px; min-width: 36px; height: 36px; padding: 0; justify-content: center; }
  .topbar .panda-language-pop, .guide-topbar .panda-language-pop { left: auto; right: 0; }
  .topbar .panda-language-pop:before, .guide-topbar .panda-language-pop:before { left: auto; right: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar-inner > .activities-link { transition: none; }
}
.auth-body.login-body { padding: 0; }
@media (min-width: 681px) {
  .topbar .panda-language-pop, .guide-topbar .panda-language-pop { left: auto; right: 0; }
}
@media (max-width: 680px) {
  .topbar .panda-language-menu, .guide-topbar .panda-language-menu { position: static; }
  .topbar .panda-language-pop, .guide-topbar .panda-language-pop { left: auto; right: 16px; top: calc(100% + 6px); width: min(244px, calc(100vw - 32px)); }
  .topbar .panda-language-pop:before, .guide-topbar .panda-language-pop:before { display: none; }
}
@media (max-width: 680px) {
  .guide-topbar .guide-nav a { white-space: normal; }
  .admin-grid > .panel { min-width: 0; }
  .admin-grid .data-row { flex-wrap: wrap; }
  .admin-grid .empty { min-width: 0; overflow-wrap: anywhere; }
}
