/* Compact workspace navigation. */
.shell { display: block; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  height: auto;
  padding: 8px clamp(18px, 3vw, 42px);
  gap: 20px;
  background: #141414;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.topbar .nav-link {
  flex: none;
  gap: 8px;
  padding: 10px 13px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  border-radius: 7px;
}
.topbar .nav-link svg { width: 16px; height: 16px; }
.topbar .nav-link.active {
  background: #292929;
  box-shadow: inset 0 -2px 0 var(--accent);
}
.topbar .nav-count {
  display: inline;
  margin-left: 1px;
  font-size: 9px;
}
#settings-view #logout { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; }
#settings-view #logout svg { width: 14px; height: 14px; }

.composer-row,.live-terminal { position: relative; }
.command-suggestions {
  position: absolute;
  z-index: 30;
  left: 0;
  bottom: calc(100% + 8px);
  width: min(360px, 100%);
  max-height: min(360px, 48vh);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #3d3d3d;
  border-radius: 6px;
  background: #171717;
  box-shadow: 0 14px 35px #0009;
}
.live-terminal .command-suggestions { left: 12px; bottom: 52px; }
.suggestion-heading { display: block; padding: 5px 9px 7px; color: var(--faint); font: 9px var(--mono); letter-spacing: 1px; }
.command-suggestion { display: block; width: 100%; padding: 7px 9px; border-radius: 3px; background: none; color: var(--text); font: 11px var(--mono); text-align: left; }
.command-suggestion:hover,.command-suggestion.active,.command-suggestion:focus-visible { outline: none; background: #323232; }

@media (max-width: 1050px) {
  .topbar { gap: 14px; }
}

@media (max-width: 700px) {
  .topbar { padding: 8px 12px 5px; }
  .topbar nav { overflow-x: auto; scrollbar-width: none; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar .nav-link { gap: 6px; padding: 9px 10px; font-size: 10px; }
  .topbar .nav-link svg { width: 15px; height: 15px; }
  .topbar .nav-count { display: none; }
}
