/* Shape editor — narrow icon strip, permanently visible.
 * Scoped to #shapeBuilder + .shape-editor namespace.
 */

#shapeBuilder {
  width: 56px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-subtle);
  border-right: 1px solid var(--border);
  overflow: hidden;
}

#shapeBuilder .sb-strip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 8px 6px;
  overflow-y: auto;
}

#shapeBuilder .sb-btn {
  padding: 7px 4px;
  font-size: 16px;
  line-height: 1.1;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

#shapeBuilder .sb-btn:hover:not(:disabled) {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
}

#shapeBuilder .sb-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#shapeBuilder .sb-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

#shapeBuilder .sb-btn.sb-btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  font-weight: 600;
}
#shapeBuilder .sb-btn.sb-btn-primary:disabled {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}
#shapeBuilder .sb-btn.sb-btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

#shapeBuilder .sb-btn.sb-btn-tiny {
  padding: 2px 4px;
  font-size: 11px;
  margin-top: -2px;
  margin-bottom: 2px;
}

#shapeBuilder .sb-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 2px;
}

#shapeBuilder .sb-foot {
  border-top: 1px solid var(--border);
  padding: 6px 4px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#shapeBuilder .sb-stats {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
  cursor: help;
}

#shapeBuilder .sb-status {
  font-size: 10px;
  color: var(--text-faint);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: help;
}

/* Custom scale handles (existing — unchanged). */
.shape-editor-handle {
  width: 12px;
  height: 12px;
  background: white;
  border: 2px solid #ea580c;
  border-radius: 2px;
  cursor: nwse-resize;
  margin-left: -6px;
  margin-top: -6px;
  box-sizing: border-box;
}
.shape-editor-handle.edge-handle { cursor: ew-resize; }
.shape-editor-handle.edge-handle.vertical { cursor: ns-resize; }
