/* PROJECT TABS (js/projtabs.js) — Simon, 26 Oct 2026: several projects open
   at once, as tabs in one window. They live in the header's empty middle,
   between the logo and the controls on the right, and take whatever width is
   there: a long list scrolls sideways rather than pushing the avatar off. */
#proj-tabs {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 4px;
  margin: -6px 18px -4px 26px;
}
#proj-tabs .ptab-list {
  display: flex; align-items: center; gap: 3px;
  min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
#proj-tabs .ptab-list::-webkit-scrollbar { display: none; }
#proj-tabs .ptab {
  flex: none; display: flex; align-items: center; gap: 6px;
  height: 24px; max-width: 190px; padding: 0 4px 0 10px;
  border: 1px solid var(--border); border-radius: 4px;
  background: transparent; color: var(--text-dim);
  font-size: 11px; cursor: pointer; user-select: none;
  transition: background .12s, color .12s, border-color .12s;
}
#proj-tabs .ptab:hover { background: var(--card); color: #fff; }
#proj-tabs .ptab.on {
  color: #fff; background: var(--card);
  border-color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}
#proj-tabs .ptab-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#proj-tabs .ptab-x {
  flex: none; width: 16px; height: 16px; padding: 0; line-height: 15px;
  border: none; border-radius: 3px; background: none;
  color: var(--text-faint); font-size: 13px; cursor: pointer; opacity: 0;
}
#proj-tabs .ptab:hover .ptab-x, #proj-tabs .ptab.on .ptab-x { opacity: 1; }
#proj-tabs .ptab-x:hover { color: #fff; background: rgba(255, 255, 255, .1); }
/* Something is still generating for this project. */
#proj-tabs .ptab-busy {
  flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: ptab-pulse 1.1s ease-in-out infinite;
}
@keyframes ptab-pulse { 50% { opacity: .3; } }
#proj-tabs .ptab-add {
  flex: none; width: 24px; height: 24px; padding: 0;
  border: 1px dashed var(--border); border-radius: 4px; background: none;
  color: var(--text-dim); font-size: 15px; line-height: 21px; cursor: pointer;
}
#proj-tabs .ptab-add:hover { color: #fff; border-color: var(--accent); border-style: solid; }
