/* The selection bar, the resize handle and the tool switch. */

/* selection: a bar of actions, and a handle to resize one thing */
.selbar {
  position: fixed; left: 50%; bottom: 96px; z-index: 22; transform: translateX(-50%);
  display: flex; align-items: center; gap: var(--s2); padding: 6px var(--s3);
  background: var(--surface); border: 1.5px solid var(--you); border-radius: var(--r3); box-shadow: var(--shadow);
  font-size: var(--fs-md);
}
.resize-handle {
  position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; z-index: 2;
  border-radius: var(--r1) 0 var(--r2) 0; background: var(--you); cursor: nwse-resize;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.zoomctl .seg { border: 0; padding: 0; margin: 0 var(--s1); }
.topbar .project-name { max-width: 180px; min-height: 42px; box-shadow: var(--shadow); font-weight: 600; }
@media (max-width: 1100px) { .selbar { bottom: 124px; } }
@media (max-width: 767px) { .topbar .project-name { max-width: 120px; } }

/* keep the bottom-left controls clear of the message bar */
.zoomctl { flex-wrap: wrap; max-width: 252px; }
.selbar { bottom: 136px; }
@media (max-width: 1100px) { .selbar { bottom: 164px; } }
